Hi, all
I'm running gpc-20041218, based on gcc 3.3.3, on a pc running RH Enterprise. I have several programs that use basic cursor controls -- wherex, wherey, clreol, and so on -- which I used to grab as externals: Procedure clreol; C; Procedure gotoxy (x : integer; y : integer ); C; Function wherey : integer; C; I have been unable to get the externals to "take" on this version of gpc, though I've tried about 20 variants -- external, asm_name, just about anything I could find in the docs and demos.
It seemed logical to just "use crt" instead. Unfortunately, the CRT unit has resisted all my attempts at compilation. Specifically: * crt.pas won't compile unless crtc.c has been compiled first * "gcc -c crtc.c" fails because ncurses.h, panel.h, and term.h are missing. (In fact, panel.h and term.h are in the units directory, but presumably gcc wants them somewhere else.) My system claims to have ncurses 5.4-13 installed, but apparently that is not sufficient.
I tried Willett's ncurses.gpc 20060207, but configure failed loudly because it couldn't find ncurses.h (WHICH ncurses.h, and where does it want it?).
I tried the PDCurses-2.6 on the GPC libraries page, and here again configure failed (couldn't find Intrinsic.h).
I am stumped. What can I do to get simple cursor control in my programs?
many thanks, Toby
Toby Ewing wrote:
It seemed logical to just "use crt" instead. Unfortunately, the CRT unit has resisted all my attempts at compilation. Specifically:
- crt.pas won't compile unless crtc.c has been compiled first
- "gcc -c crtc.c" fails because ncurses.h, panel.h, and term.h are
missing. (In fact, panel.h and term.h are in the units directory, but presumably gcc wants them somewhere else.) My system claims to have ncurses 5.4-13 installed, but apparently that is not sufficient.
You probably need to install something like ncurses-dev or -devel too. (For some *** reason, distros think it's cool to put some 10 KB headers in a separate package from the several 100 KB or MB libs, adding another source of unnecessary confusion for programmers or package builders.)-:
Frank
On Fri, Sep 15, 2006 at 11:11:32AM -0500, Toby Ewing wrote:
Hi, all
I'm running gpc-20041218, based on gcc 3.3.3, on a pc running RH Enterprise. I have several programs that use basic cursor controls -- wherex, wherey, clreol, and so on -- which I used to grab as externals: Procedure clreol; C; Procedure gotoxy (x : integer; y : integer ); C; Function wherey : integer; C; I have been unable to get the externals to "take" on this version of gpc, though I've tried about 20 variants -- external, asm_name, just about anything I could find in the docs and demos.
It seemed logical to just "use crt" instead. Unfortunately, the CRT unit has resisted all my attempts at compilation. Specifically:
- crt.pas won't compile unless crtc.c has been compiled first
- "gcc -c crtc.c" fails because ncurses.h, panel.h, and term.h are
missing. (In fact, panel.h and term.h are in the units directory, but presumably gcc wants them somewhere else.) My system claims to have ncurses 5.4-13 installed, but apparently that is not sufficient.
As usual with libraries, the ncurses package only contains binaries, not headers. Make sure you have ncurses-devel installed.
Emil
I tried Willett's ncurses.gpc 20060207, but configure failed loudly because it couldn't find ncurses.h (WHICH ncurses.h, and where does it want it?).
I tried the PDCurses-2.6 on the GPC libraries page, and here again configure failed (couldn't find Intrinsic.h).
I am stumped. What can I do to get simple cursor control in my programs?
many thanks, Toby