I am far from a GPC expert, but mainly a user of several old but good working pascal programs.
I just installed gpc-20041017 from www.g-n-u.de/gpc on my Linux PC. I downloaded gpc-20041017-with-gcc.i686-pc-linux-gnu.tar.gz, unzipped and untarred in /
When I ask for gpc, it seems to be there, and gpc -v gives version 20041017, based on gcc-3.3.3.
When I try to compile one of my programs, giving
gpc -o dbase --automake -I/usr/include/ncurses dbase.pas
I now get a very long error list, starting with
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/units/crtc.c:45:20: stdlib.h: No such file or directory /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/units/crtc.c:46:20: unistd.h: No such file or directory /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/units/crtc.c:47:20: string.h: No such file or directory /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/units/crtc.c:48:19: errno.h: No s uch file or directory /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/units/crtc.c:49:22: sys/time.h: N o such file or directory /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/units/crtc.c:50:20: signal.h: No such file or directory In file included from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/units/crtc. c:124: /usr/include/ncurses.h:101:19: stdio.h: No such file or directory ...
Can anybody give an indication of what might be wrong.
I have to admit that I had an earlier version of gpc, which I must have had overwritten by just untarring this newer version.
Thanks a lot
Paul