Modify

Opened 7 months ago

Closed 3 months ago

#12888 closed Bugs (fixed)

Linking with boost thread does not work on mingw/gcc 4.4

Reported by: anonymous Owned by: viboes
Milestone: Boost 1.65.0 Component: thread
Version: Boost 1.63.0 Severity: Problem
Keywords: Cc:

Description

boost 1.63 when used mingw32 compiling x86 target mingw32 version 4.4.0

Errors: c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingw32.a(tlssup.o):tlssup.c:(.tls+0x0): multiple definition of `_tls_used' C:\boost\mingw/Lib/libboost_thread.a(tss_pe.o):tss_pe.cpp:(.rdata$T+0x0): first defined here

modify “boost_1_63_0/libs/thread/src/win32/tss_pe.cpp”

#if defined(MINGW64)
(MINGW32_MAJOR_VERSION >3)

((MINGW32_MAJOR_VERSION==3) && (MINGW32_MINOR_VERSION>=18))

I've changed it to:

#if defined(MINGW64)
(MINGW64_VERSION_MAJOR) (MINGW32) (MINGW32_MAJOR_VERSION >3)

((MINGW32_MAJOR_VERSION==3) && (MINGW32_MINOR_VERSION>=18))

Attachments (0)

Change History (6)

comment:1 in reply to:  description Changed 7 months ago by anonymous

Replying to anonymous:

boost 1.63 when used mingw32 compiling x86 target

mingw32 version 4.4.0

Errors: c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingw32.a(tlssup.o):tlssup.c:(.tls+0x0): multiple definition of `_tls_used' C:\boost\mingw/Lib/libboost_thread.a(tss_pe.o):tss_pe.cpp:(.rdata$T+0x0): first defined here

modify “boost_1_63_0/libs/thread/src/win32/tss_pe.cpp”

#if defined(__MINGW64__) || (__MINGW64_VERSION_MAJOR) || (__MINGW32_MAJOR_VERSION >3) ||             \
    ((__MINGW32_MAJOR_VERSION==3) && (__MINGW32_MINOR_VERSION>=18))

I've changed it to:

#if defined(__MINGW64__) || (__MINGW64_VERSION_MAJOR) || (__MINGW32__) || (__MINGW32_MAJOR_VERSION >3) ||             \
    ((__MINGW32_MAJOR_VERSION==3) && (__MINGW32_MINOR_VERSION>=18))

comment:2 Changed 7 months ago by ljx0305@…

modify

comment:3 Changed 5 months ago by viboes

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:4 Changed 5 months ago by viboes

I don't know if this is the good change.

I no one is against I will apply it this weekend. We will see on the regression tests how it behaves.

comment:6 Changed 3 months ago by viboes

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.