libpython2.3.a Linux

D

David

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
 
A

Artie Gold

David said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,252
Latest member
MeredithPl

Latest Threads

Top