libpython2.3.a Linux
Artie Gold
artiegold at austin.rr.com
Sun May 22 23:28:03 EDT 2005
David wrote:
> Hello,
>
> I'm trying to build a python module in the form of an .so file but I keep
> getting the following message :
>
> /usr/bin/ld cannot find -llibpython2.3
>
> I have all the necessary files in /usr/local/src/Python-2.3.5
>
> with libpython2.3.a and libpython2.3.so files
>
> g++ -I /usr/local/src/Python-2.3.5/Include -L /usr/local/src/Python-2.3.5 -
> shared -fPIC -l libpython2.3 -o file.so
Close:
g++ -I/usr/local/src/Python-2.3.5/Include -L/usr/local/src/Python-2.3.5
-shared -fPIC -lpython2.3 -o file.so
Please read the man page (or equivalent documentation) for the correct
way to use options in g++.
>
> Running on Fedora Core 3 - 1.7.0
>
> made the following steps in compiling and installing Python :
>
> ./configure
> make
> make install
> make libpython2.3.so
>
> Compiling on windows 2k is fine.
>
> Thanks for any input.
>
> David
>
>
>
HTH,
--ag
--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays
More information about the Python-list
mailing list