Hi

I would be grateful for some help with setting up some makefiles for my C++ 
application, compiled with gcc under Linux, that uses Boost.Python.

The application consists of a static library that contains main() and various 
shared libraries that are dynamically linked at runtime as required. 

One of the shared libraries invokes the Python interpreter to act on some 
Python objects.

Initially,  I called Py_Initialize() from the shared library and linked that 
library to the Python and Boost libraries within the shared library's makefile. 
Then the Python calls worked as expected.

Now I want to move Py_Initialize() to my main() function, and invoke the Python 
interpreter from the shared library as before. So I linked the application to 
the Python and Boost libraries in my top level makefile, and deleted mention of 
the Python and Boost libraries from the shared library's makefile.  The result 
all links without errors but the Python calls do nothing.

If I use Boost.Python in a shared library, do I have to link Boost.Python to it 
when I build it, or would linking Boost.Python to the main application be 
sufficient?

(I hope this makes some sense).

Best regards

David
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to