Subject: Re: [Boost-build] Linker error during arm-gcc cross compile
From: Christian Auby (christian_at_[hidden])
Date: 2009-09-30 12:57:26
You are correct, the same error happens if I just call the gcc linker
line by myself.
I tried the echo test, and it says "no access". (well, in norwegian)
Could the path be too long?
The linker tip is exactly what I wanted, thanks for that!
Vladimir Prus wrote:
> On Wednesday 30 September 2009 Christian Auby wrote:
>> I have figured out why it happens:
>> when using toolset=gcc-arm it still tries to link with winsock (ws2_32),
>> which the arm-gcc linker can't find. There is no error message displayed
>> from ld. Shouldn't boost.build display this? Or maybe all ld is giving
>> is the cryptic one.
> I don't think boost.build intentionally hides any error messages.
> Is an error message produced if you run the link command manually?
>> Anyway: I haven't found a way to only link a library if I'm on a
>> particular OS. The current rule is as follows:
>> lib winsock
>> : <name>ws2_32
>> lib myLib
>> : glob [ source/*.cpp ]
>> : <link>static
>> Is there some way for myLib to only link with winsock if target-os is
> The following should work:
> lib myLib
> : glob [ source/*.cpp ]
> : <link>static <target-os>windows:<library>winsock
> Does this help?
> - 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