W dniu 2010-12-11 17:17, Stefan Seefeld pisze:
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


Hi,

I think there is still unnecessary space here: -I /usr/include/python2.6
Should be just -I/usr/include/python2.6

Cheers,
Sebastian



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

Reply via email to