[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] Linker error during arm-gcc cross compile
From:       Christian Auby <christian () auby ! no>
Date:       2009-09-30 17:04:52
Message-ID: 4AC38FB4.5090004 () auby ! no
[Download RAW message or body]

Scratch that previous suggestion of the path being too long.

The reason is: The target folder has a folder called "server", so it
gets all confused and doesn't want to create a file called "server" as
well. If I use the exact same command but change "server" to
"server.bin" it links perfectly.

Now, how on earth would I prevent / work around this :P

Christian

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.
> 
> Christian,
> 
> 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 ]
>>     winsock
>>   : <link>static
>>   ;
>>
>> Is there some way for myLib to only link with winsock if target-os is
>> "windows"?
> 
> 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
> 
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic