Hello, I have posted my problem to the Cygwin mailing list, and have been told by the person who handles the gcc installation that it doesn't seem to be their issue. I am hoping that someone on the gpc list will be able to help me.
I have a number of pascal files that must be compiled to be tested, and am having a hard time doing so. I have installed Cygwin base (version: 1.5.24) on my Windows Server 2003 system and have added all packages that I can think would be useful for this compilation. I am attaching the output of a run of cygcheck so that you can see the environment I have installed. All installed packages are listed at the bottom of the file.
Using gpc to compile code which contains the statement "Uses Crt", I get over 600 error lines. I am attaching also attaching the output that I am getting from my compilation, as well as a test file that I have created which gives me these errors.
The command line that I am using is:
gpc --automake test.pas
I have also used:
For some reason the compilation, because of the inclusion of the "Uses Crt" statement, thinks that it needs to compile crtc.c, instead of using the binaries that already exist in the Cygwin environment according to the guy I mentioned above who handles the gcc install. I am not sure what I need to add to my command line in order to get this compilation to work. Is there someone who can help me here. I would highly appreciate it.
Thanks... Bruce
On Fri, 8 Jun 2007, Bruce Mahfood wrote:
[snip]
The command line that I am using is:
gpc --automake test.pas
gpc is looking for 3 files in the same directory as test.pas: crt.gpi crt.o crtc.o
not finding them gpc tries to compile the sources. it looks like crtc.c is not finding the ncurses library ( or is it pcurses? ).
this hint is the best i can do. you'll need a reply from one of the experts.
russ
On 8 Jun 2007 at 10:02, Bruce Mahfood wrote:
Hello, I have posted my problem to the Cygwin mailing list, and have been told by the person who handles the gcc installation that it doesn't seem to be their issue. I am hoping that someone on the gpc list will be able to help me.
I have a number of pascal files that must be compiled to be tested, and am having a hard time doing so. I have installed Cygwin base (version: 1.5.24) on my Windows Server 2003 system and have added all packages that I can think would be useful for this compilation. I am attaching the output of a run of cygcheck so that you can see the environment I have installed. All installed packages are listed at the bottom of the file.
Using gpc to compile code which contains the statement "Uses Crt", I get over 600 error lines. I am attaching also attaching the output that I am getting from my compilation, as well as a test file that I have created which gives me these errors.
Your problem is ncurses. I was never able to get things working properly with ncurses under Cygwin, and so moved to pdcurses. You might want to try pdcurses yourself.
You can find my Cygwin binaries (and sources) here: http://gnu-pascal.de/contrib/chief/win32/cygwin/
The binaries: http://gnu-pascal.de/contrib/chief/win32/cygwin/pdcurses-2.6- 2-cygwin-bin.tar.gz
After extracting them into your Cygwin "/" directory, add these to your command line: "-I/usr/pdcurses/include -L/usr/pdcurses/lib"
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/
Hey Chief, thanks for the help. I downloaded your pdcurses and installed, and it got me past that issue with using crt. That's great! Other errors exist now, but it's a step in the right direction. Thanks a lot. Bruce
----- Original Message ----- From: "Prof A Olowofoyeku (The African Chief)" chiefsoft@bigfoot.com To: gpc@gnu.de, "Bruce Mahfood" bruce.mahfood@tseboston.com Sent: Saturday, June 9, 2007 2:24:30 AM (GMT-0500) America/New_York Subject: Re: GPC on Cygwin having a problem compiling using crt
On 8 Jun 2007 at 10:02, Bruce Mahfood wrote:
Hello, I have posted my problem to the Cygwin mailing list, and have been told by the person who handles the gcc installation that it doesn't seem to be their issue. I am hoping that someone on the gpc list will be able to help me.
I have a number of pascal files that must be compiled to be tested, and am having a hard time doing so. I have installed Cygwin base (version: 1.5.24) on my Windows Server 2003 system and have added all packages that I can think would be useful for this compilation. I am attaching the output of a run of cygcheck so that you can see the environment I have installed. All installed packages are listed at the bottom of the file.
Using gpc to compile code which contains the statement "Uses Crt", I get over 600 error lines. I am attaching also attaching the output that I am getting from my compilation, as well as a test file that I have created which gives me these errors.
Your problem is ncurses. I was never able to get things working properly with ncurses under Cygwin, and so moved to pdcurses. You might want to try pdcurses yourself.
You can find my Cygwin binaries (and sources) here: http://gnu-pascal.de/contrib/chief/win32/cygwin/
The binaries: http://gnu-pascal.de/contrib/chief/win32/cygwin/pdcurses-2.6- 2-cygwin-bin.tar.gz
After extracting them into your Cygwin "/" directory, add these to your command line: "-I/usr/pdcurses/include -L/usr/pdcurses/lib"
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/
Hi all, I am on the warpath trying to compile a set of pascal files that were left to me by a predecessor. My latest issue is that my files have the statement "Uses graph". Looking online, I find that this is a Borland thing referring to the use of the Borland Graphics Interface (BGI).
I have found that GNU supports a package called GRX (http://grx.gnu.de/download/index.html), and the link "http://www.gnu-pascal.de/gpc/Graph-unit.html#Graph-unit" says it's known to work under Cygwin. I have extracted the files into my cygwin installation at /usr/local/src, and am looking at the makefiles. Unfortunately, there is only a mingw specific makefile and not a cygwin specific one. I have not yet worked with mingw, and don't really know how these two correlate.
Can anyone point me in the right direction for compiling this for cygwin?
Thanks... Bruce
On Mon, 2007-06-11 at 12:27 -0400, Bruce Mahfood wrote:
Hi all, I am on the warpath trying to compile a set of pascal files that were left to me by a predecessor. My latest issue is that my files have the statement "Uses graph". Looking online, I find that this is a Borland thing referring to the use of the Borland Graphics Interface (BGI).
I have found that GNU supports a package called GRX (http://grx.gnu.de/download/index.html), and the link "http://www.gnu-pascal.de/gpc/Graph-unit.html#Graph-unit" says it's known to work under Cygwin. I have extracted the files into my cygwin installation at /usr/local/src, and am looking at the makefiles. Unfortunately, there is only a mingw specific makefile and not a cygwin specific one. I have not yet worked with mingw, and don't really know how these two correlate.
Can anyone point me in the right direction for compiling this for cygwin?
Is there any particular reason why you are using Cygwin? You might want to try a Mingw version, which has all that stuff built in (with an IDE): http://www.gnu-pascal.de/contrib/chief/win32/dev_gnu_pascal-1.9.4.8.exe
Bruce Mahfood a écrit:
Hi all, I am on the warpath trying to compile a set of pascal files that were left to me by a predecessor. My latest issue is that my files have the statement "Uses graph". Looking online, I find that this is a Borland thing referring to the use of the Borland Graphics Interface (BGI).
I have found that GNU supports a package called GRX (http://grx.gnu.de/download/index.html), and the link "http://www.gnu-pascal.de/gpc/Graph-unit.html#Graph-unit" says it's known to work under Cygwin. I have extracted the files into my cygwin installation at /usr/local/src, and am looking at the makefiles. Unfortunately, there is only a mingw specific makefile and not a cygwin specific one. I have not yet worked with mingw, and don't really know how these two correlate.
There has been on the GRX list a submission of cygwin makefiles (and some other changes) by Demmer Thomas: in fact two, the second superseding the first. But these were for grx246, and incompatible with others which have been included in grx247 (mainly the SDL driver). If you are interested I can make the necessary adaptation. I have not done it for grx247 because I have no cygwin setup to check it. But if you make the checks, it is probably worth the (seemingly small) effort.
But you probably need first to make your mind about the asm and intr issues. intr/msdos is solved with djgpp, for asm no way: 16 bit vs 32 bit incompatible systems.
Maurice
On Mon, 2007-06-11 at 10:11 -0400, Bruce Mahfood wrote:
Hey Chief, thanks for the help. I downloaded your pdcurses and installed, and it got me past that issue with using crt. That's great! Other errors exist now, but it's a step in the right direction. Thanks a lot. Bruce
Excellent. Well, if the remaining problems are GPC-specific, then you know where to post ;)