Boost logo

Boost Users :

From: Rush Manbert (rush_at_[hidden])
Date: 2006-02-10 13:53:06


Locatelli Jérôme wrote:
> I don't use xcode to compile. We use a GNU makefile. I try to link those
> library : boost_thread and boost_regex.
>
>
> Le 9 févr. 06, à 16:55, RIVASSEAU Jean Noel a écrit :
>
>
> Do you develop in XCode ? I remember that while developing on XCode

<snip>

> Locatelli Jérôme
> *Envoyé :* jeudi 9 février 2006 14:14
> *À :* boost-users_at_[hidden]
> *Objet :* [Boost-users] pd darwin Symbol not found
>
> I'am writing a application on MacOS 10.4.4 using darwin 8 with gcc
> 4, I compile and link my application without problem but when I run
> my application , I've got the error bellow. Has anybody got an idear??
>
> Thanks.
>
>
> dyld: lazy symbol binding failed: Symbol not found:
> __ZN5boost6detail3tss4initEPNS_9function1IvPvSaINS_13function_baseEEEE
> Referenced from:
> /Users/locatelli/Projets/ics/IcsServer/obj.ics/../lib/libIcsServerCommandSystem.0
>
> Expected in: flat namespace
>
> dyld: Symbol not found:
> __ZN5boost6detail3tss4initEPNS_9function1IvPvSaINS_13function_baseEEEE
> Referenced from:
> /Users/locatelli/Projets/ics/IcsServer/obj.ics/../lib/libIcsServerCommandSystem.0
>
> Expected in: flat namespace
>
> Trace/BPT trap

I would try linking against the static libraries, and see whether you
get errors in that case. (Thinking that link time errors might be easier
to decode than runtime link errors.) On the Mac, this is probably
easiest if you uniquely name the static libs and change your -l params
to the linker. If the dylib and the static lib are both in the linker
search paths and their names only differ by extension, then the linker
will prefer the dylib, so the rename is the easiest workaround for
testing. (Or maybe change the dylib names to something that won't get
found and leave the linker commands alone. That's a smaller perturbation.)

- Rush


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net