problems extending python with c-function

Uwe Schmitt schmitt at num.uni-sb.de
Tue Sep 18 11:09:48 EDT 2001


Hi There,

I tried to write a C function in order to extend python as
described in the documentation at www.python.org.
I wrote a Setup file and made a make file as described.
When building the dynamic library with "make" I get
the follown error message:

   In file included from
   /usr/local/ActivePython-2.1/include/python2.1/Python.h:54, from
   ././testmod.c:1:

   /usr/local/ActivePython-2.1/include/python2.1/pyport.h:422:2: #error
   "LONG_BIT definition appears wrong for platform (bad gcc/glibc
   config?)." make: *** [testmod.o] Fehler 1

Can anybody help me ? I'm using RedHat 7.1 and ActiveState Python.

Greetings, Uwe
-- 
Uwe.Schmitt at num.uni-sb.de      Universität des Saarlandes
phone: +49 (0)681/302-2468     Geb. 36.1, Zi. 4.17, PF 151150
                               D-66041  Saarbrücken
http://www.rocksport.de        http://www.rocksport.de/first_ride.mp3




More information about the Python-list mailing list