Linux Python Module using PythonC/ API

David Legault dlegault at vantpoint.com
Tue May 24 16:48:26 EDT 2005


Hi Jeff thanx for the reply

I'm a complete noob when it comes to Linux and trying to learn how to manage
the compilation process of the same objects that work on windows.

The complete linking line is this.

------------------

all: main

main: utm.o utmmodule.o
    $(CC) $(CFLAGS) -shared -fPIC -Xlinker -export-dynamic -lpython2.3 -o
utm.so

-------------------

If you could direct me into how to properly link the stuff into the .so
file, I'd appreciate it.

I will check to see if the symbols are effectively exported to the .so file.

In windows I found it pretty easy to create the module files as dlls.

Thanx

David




More information about the Python-list mailing list