470,591 Members | 1,484 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

libpython2.3.a Linux

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

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

Jul 19 '05 #1
1 2040
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
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jhuola Hoptire | last post: by
5 posts views Thread by Levi Campbell | last post: by
5 posts views Thread by cranium.2003 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.