Opened 14 years ago

Closed 10 years ago

#2140 closed Bugs (fixed)

Building static library Boost.thread for GCC under Windows

Reported by: Arnaud Cheritat <cheritat@…> Owned by: Anthony Williams
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.35.0 Severity: Problem
Keywords: installation Cc:

Description

The command bjam --toolset=gcc --with-thread --layout=system stage typed in a cmd.exe windows command prompt does not produce libboost_thread-mt.a Here's what I got in stage\lib: boost_thread-mt-d.dll boost_thread-mt-d.lib boost_thread-mt.dll boost_thread-mt.lib libboost_thread-mt-d.lib libboost_thread-mt-s.lib libboost_thread-mt-sd.lib libboost_thread-mt.lib But g++ won't statically link with .lib files.

gcc (GCC) 3.4.5 (mingw special) OS: Windows Vista Family Premium 32bits SP1 Processor: AMD Athlon 64 X2 4000+, but you probably don't care.

I followed the instruction from the windows install boost webpage...

Thanks for your attention.

Change History (7)

comment:1 by Arnaud Cheritat <cheritat@…>, 14 years ago

The command
bjam --toolset=gcc --with-thread --layout=system stage
typed in a cmd.exe windows command prompt does not produce libboost_thread-mt.a
Here's what I got in stage\lib:
boost_thread-mt-d.dll
boost_thread-mt-d.lib
boost_thread-mt.dll
boost_thread-mt.lib
libboost_thread-mt-d.lib
libboost_thread-mt-s.lib
libboost_thread-mt-sd.lib
libboost_thread-mt.lib
But g++ won't statically link with .lib files.

gcc (GCC) 3.4.5 (mingw special)
OS: Windows Vista Family Premium 32bits SP1
Processor: AMD Athlon 64 X2 4000+, but you probably don't care.

I followed the instruction from the windows install boost webpage...

Thanks for your attention.

comment:2 by viboes, 12 years ago

When I use mingw the libs that are linked are dll and .lib.

comment:3 by viboes, 12 years ago

Cc: viboes added

Isn't this a bug on bjam?

comment:4 by viboes, 12 years ago

Cc: viboes removed

Does the problem appear with other libraries?

comment:5 by viboes, 11 years ago

Component: threadBuilding Boost
Milestone: Boost 1.36.0To Be Determined

comment:6 by René Rivera, 11 years ago

This bug doesn't actually have enough information for us to duplicate it. We need to know the command lines use for trying to link against the compiled Boost. I say this, because last I checked (long ago), mingw would link to lib*.lib files just fine.

comment:7 by Steven Watanabe, 10 years ago

Resolution: fixed
Status: newclosed

This is no longer applicable, as the library extensions for MinGW were changed to .a and .dll.a a while ago.

Note: See TracTickets for help on using tickets.