On 29 Mar 2016 at 16:23, mathias uhle wrote:
Well, befor the diverse compiling efforts I checked that ncurses was installed and found that: libncurses5, libncurses6,ncurses-devel and ncurses-utils were installed!
Further a "find" revealed that there were copies of "panel.h" in /usr/include/ncurses /usr/include/ncurses6/ncurses /usr/include/ncurses6/ncursesw /usr/include/ncursesw
So thas before I called for help
I added now: libncurses5-32bit, ncurses6-32bit and ncurses-devel-32bit. althoug it is an 64-bit system.
The effect on compilation was nil!
I now copied "panel.h" into my testdirectory: no effect on compilation! Next try: put it into the source-directory of "crtc.c": no effect!
GPC still complains not to find "panel.h"
[...]
Your problem is a version mismatch between gpc and gcc. Your system gcc (4.8.3), which is being called by gpc to build the crt unit, is a different version from that on which gpc is based (3.4.6), and gcc can't find all the things that it needs.
You need to set some environment variables to point to the relevant "include" directories (and, if necessary, to a matching gcc)
e.g.,
export CC=/usr/local/bin/gcc export C_INCLUDE_PATH=/usr/local/include:/usr/local/include/ncurses
It seems to me that your installed gpc might not be complete (at least, if you want it to be able to compile the c sources that it needs). But this *might* work (before you compile the demo);
export CC=/usr/bin/gcc export C_INCLUDE_PATH=/usr/include:/usr/include/ncurses
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/