Boost logo

Boost :

Subject: [boost] Python-extension: Linker options
From: Sergiy Nazarenko (nazarenko.sergiy_at_[hidden])
Date: 2011-07-29 03:15:40

Hi everyone!

I'm begginers to use bjam and boost.
I've built python-extension. I successfully compiled it by bjam. My Jamroot
file like this:

use-project boost
: ../../.. ;

  : requirements <library>/boost/python//boost_python ;

python-extension myext : myext.cpp ;

And I have custom shared library with extra functions . Now I'm trying to
use extra functions in python library.
My questions is how put linker options in bjam project? Something like this:
-L/path/to/my/library/lib64/ -lmylib.0.1
If I append include options for a file, my MyLib.h is found but linker does
not find library itself.
I append like this:
python-extension myext : myext.cpp <include>/path/to/my/library/include;

I've tried to use following
# <library-path>/path/to/my/library/lib64/
# <library-file>
but with these options my extension is not compiled.


Boost list run by bdawes at, gregod at, cpdaniel at, john at