Opened 14 years ago
Closed 10 years ago
#2140 closed Bugs (fixed)
Building static library Boost.thread for GCC under Windows
Reported by: | 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 , 14 years ago
comment:5 by , 11 years ago
Component: | thread → Building Boost |
---|---|
Milestone: | Boost 1.36.0 → To Be Determined |
comment:6 by , 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 , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is no longer applicable, as the library extensions for MinGW were changed to .a and .dll.a a while 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.