Partial success Re: [C++-sig] boost.python on OS X 10.3 (Panther)

Bob Ippolito bob at redivi.com
Wed Nov 5 02:32:38 CET 2003


On Nov 4, 2003, at 8:25 PM, Ralf W. Grosse-Kunstleve wrote:

> --- Bob Ippolito <bob at redivi.com> wrote:
>>> How would you modify these command lines?
>>
>> the last one:
>>
>> c++ -bundle -bundle_loader
>> /Library/Frameworks/Python.framework/Versions/2.3/Python
>> /Library/Frameworks/Python.framework/Versions/2.3/Python -o
>> libtbx/str_ext.so boost/libs/python/test/str.os -Llibtbx
>> -L/net/worm/scratch1/rwgk/hot/libtbx -lboost_python -lm
>>
>> should be:
>>
>> c++ -bundle -o libtbx/str_ext.so boost/libs/python/test/str.os 
>> -Llibtbx
>> -L/net/worm/scratch1/rwgk/hot/libtbx -framework Python -lboost_python
>> -lm
>
> Just to confirm this observation, unfortunately it doesn't work:
>
> c++ -bundle -o libtbx/list_ext.so boost/libs/python/test/list.os 
> -Llibtbx
> -L/net/worm/scratch1/rwgk/hot/libtbx -lboost_python -lm
> ld: boost/libs/python/test/list.os illegal reference to symbol:
> _PyEval_CallFunction defined in indirectly referenced dynamic library
> /Library/Frameworks/Python.framework/Versions/2.3/Python
>
> If I put the -bundle_loader back and keep everything else the same 
> there is no
> problem.

That's because it's wrong, this is right:
c++ -bundle -framework Python -o libtbx/list_ext.so 
boost/libs/python/test/list.os -Llibtbx 
-L/net/worm/scratch1/rwgk/hot/libtbx -lboost_python -lm

-bob





More information about the Cplusplus-sig mailing list