[C++-sig] boost.python errors on Linux
Stefan Seefeld
seefeld at sympatico.ca
Sat Dec 11 17:17:06 CET 2010
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...
More information about the Cplusplus-sig
mailing list