On 12/11/2010 11:10 AM, Max Stricker wrote:
I tried your suggestions but it leads to the same error message (using g++ -shared foo.cpp -o foo.so -I /usr/include/python2.6 -lpython2.6 -lboost_python). Could there be something wrong with the installation?
Your error message suggests the compiler couldn't find the Python headers. Do you have Python 2.6 installed ? Are the headers in /usr/include/python2.6 ? If not, you need to adjust your command line to whatever Python installation you have. (If you use system python packages, make sure to also install the "python-dev" package, which provides the headers as well as linkable DSOs.)
HTH, Stefan -- ...ich hab' noch einen Koffer in Berlin... _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig