Hi everybody
I want to recompile the DISLIN graphics module for Python under Linux, because
I think it is one of the best graphics libraries at present.
The included module was for version 2.0 and I want it for 2.2 or maybe 2.3.
The problem is, that I use the small make_py script which only
calls the gcc compiler
CC="gcc -fPIC -c -O"
PYTH_INC="/usr/local/include/python2.0"
PYTH_CONF="/usr/local/lib/python2.0/config"
gcc -shared -Wl,-soname,dislinmodule.so -o dislinmodule.so *.o \
-L$DISLIN -ldislnc
but I think many variables arent configured,
so a long list of errors follows (I copied the first few lines to
the end)
I dont have experience with makefiles and so I want to ask what I
have to do in a short way.
Thanks in advance
Erwin
My system:
SuSE Linux 8.1 on an AMD-machine
Here are the first few lines of the gcc output
dislinmodule.c:1:20: Python.h: No such file or directory
dislinmodule.c:21: parse error before '*' token
dislinmodule.c:21: parse error before '*' token
dislinmodule.c:21: warning: data definition has no type or storage class
dislinmodule.c:22: parse error before '*' token
dislinmodule.c:22: parse error before '*' token
dislinmodule.c:22: warning: data definition has no type or storage class
dislinmodule.c:23: parse error before '*' token
dislinmodule.c:23: parse error before '*' token
dislinmodule.c:23: warning: data definition has no type or storage class
dislinmodule.c:31: parse error before '*' token
dislinmodule.c:31: warning: data definition has no type or storage class
dislinmodule.c:32: parse error before '*' token
dislinmodule.c:32: warning: data definition has no type or storage class
dislinmodule.c:34: parse error before '*' token
dislinmodule.c: In function `getlength':
dislinmodule.c:37: `o' undeclared (first use in this function)
dislinmodule.c:37: (Each undeclared identifier is reported only once
dislinmodule.c:37: for each function it appears in.)
dislinmodule.c:38: `PyExc_ValueError' undeclared (first use in this function)
dislinmodule.c: At top level:
dislinmodule.c:51: parse error before '*' token
dislinmodule.c: In function `fltarray':
dislinmodule.c:53: `PyObject' undeclared (first use in this function)