Boost logo

Boost-Build :

Subject: Re: [Boost-build] Library generation GCC on Windows vs Linux
From: Christian Auby (christian_at_[hidden])
Date: 2009-11-20 08:33:19


Snip:

---
D:\dev\projects\test\hello>bjam -d+2 -a
gcc.compile.c++ bin\gcc-mingw-3.4.5\debug\link-static\main.o
    "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g
-I"d:\dev\bin\boost" -I"lib" -c -o "bin\gcc-mingw-3.4.5\debu
g\link-static\main.o" "main.cpp"
gcc.link bin\gcc-mingw-3.4.5\debug\link-static\app.exe
    "g++" -L"d:\dev\bin\boost\stage\lib" -L"lib"   -o
"bin\gcc-mingw-3.4.5\debug\link-static\app.exe" -Wl,--start-group
"bin\gcc-mingw-3.4.5\debug\link-static\main.o"  -Wl,-Bstatic -lhello
-Wl,-Bdynamic  -Wl,--end-group -g
---
Yes links fine. I've used MinGW + boost.build for a while now.
Christian
Vladimir Prus wrote:
> On Friday 20 November 2009 16:12:16 Christian Auby wrote:
> 
>> If I rename "libhello.lib" to "libhello.a" it does link as expected on
>> MinGW. 
> 
> BTW, does it really link? I though that mingw does not like the fact that
> Boost.Build does not ran 'ranlib' on static libraries...
> 
> - Volodya
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
> 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk