I compiled MySQLmodule as shown in the readme:
gcc -shared -I/usr/include/python1.5 \
-I/usr/local/include/mysql \
MySQLmodule.c -L/usr/local/lib/mysql\
-lmysqlclient -L/usr/lib/python1.5/config -lpython1.5 \
-o MySQLmodule.so
It gave me the following warning message, which I'm guessing is okay:
MySQLmodule.c: In function `pythonify_row':
MySQLmodule.c:238: warning: assignment from incompatible pointer type
However, when trying to import MySQLmodule.so to python, I got the
following error:
>>> import MySQLmodule
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: ./MySQLmodule.so: undefined symbol: mysql_fetch_row
What causes this is beyond me. Could someone please help!?