Embedded Python Linking Problem
Ian Terrell
kife00 at yahoo.com
Wed Feb 26 00:20:53 EST 2003
Alex Martelli <aleax at aleax.it> wrote in message news:<bWR6a.318289$AA2.11987004 at news2.tin.it>...
> [alex at lancelot leap]$ g++ hello.cc -lpython2.2
> [alex at lancelot leap]$ ./a.out
> Hello, world!
My try:
$ g++ hello.cc -o hello -lpython2.2
/usr/bin/ld: cannot find -lpython2.2
collect2: ld returned 1 exit status
> So the problem is, where's your libpython2.2.so ?
Indeed that is the problem. Doing a Gnome search for file
"libpython2.2.so" shows no results. I do find a "libpython2.2.a" in
/usr/lib/python2.2/config. Compiling with various flags on g++ with
libpython2.2.a does not work.
To install Python I simply did a ./configure;make. Is there anything
more to do to get libpython2.2.so?
Thanks for the help,
Ian
More information about the Python-list
mailing list