Hi everybody. I'm using GPC for DOS, so I downloaded the file grx22.zip to use graphics. I've followed the instructions on the readme file, but I can't even make the demos run. Do I have to compile the unit some way? How? If so, please give me detailed instructions because I'm not too experienced in GPC neither in GCC.
Thank you, and forgive my bad english, Ariel. --- Ariel Bendersky bender@einstein.com.ar
Hi!
According to Bendersky:
I'm using GPC for DOS, so I downloaded the file grx22.zip to use graphics. I've followed the instructions on the readme file, but I can't even make the demos run. Do I have to compile the unit some way? How?
gpc -c grx20.pas
If so, please give me detailed instructions because I'm not too experienced in GPC neither in GCC.
You can use
gpc --automake myprog.pas -o myprog -lgrx20
to produce a program `myprog.exe' from `myprog.pas'.
Explanation:
gpc call the compiler --automake automatically compile Units used by the program myprog.pas your source file; do NOT omit the extension `.pas' -o myprog name of the executable; default is `a.exe' -lgrx20 link with the GRX20 library
Maybe the `-lgrx20' reads now `-lgrx22'; I didn't check.
Hope this helps,
Peter
Hi!
According to Bendersky:
I'm using GPC for DOS, so I downloaded the file grx22.zip to use graphics. I've followed the instructions on the readme file, but I can't even make the demos run. Do I have to compile the unit some way? How?
gpc -c grx20.pas
That (if I'm right) might create the grx20.o which is the compiled unit. Am I right? The problem is that the only grx20.pas that comes with grx22.zip is just the definition of the unit, but not the code itself. And in the src directory of the grx22 is what I think is the real source, but it's all written in C. So, how can I compile it? It says something about a turbo C make. So I think that's what I need to compile the unit. Where do I get it?
Thank you, Ariel. --- Ariel Bendersky bender@einstein.com.ar
According to Bendersky:
gpc -c grx20.pas
That (if I'm right) might create the grx20.o which is the compiled unit. Am I right?
Yes, *and* it creates `grx20.gpi', the precompiled Interface part of the Unit. (Both together make up what is the `.tpu' file in TP.)
The problem is that the only grx20.pas that comes with grx22.zip is just the definition of the unit, but not the code itself. And in the src directory of the grx22 is what I think is the real source, but it's all written in C. So, how can I compile it?
You don't need to: In the directory `/djgpp/contrib/grx22/lib/' there is a file `libgrx20.a'. That's the compiled library which is linked to your programs when you add the `-lgrx20' command line parameter. (If you are using RHIDE, define and activate `grx20' as a library in the `Options|Libraries' menu.)
It says something about a turbo C make. So I think that's what I need to compile the unit. Where do I get it?
GNU make is okay, too. See `doc/grx22.txt', section "Installation for DJGPP".
Hope this helps,
Peter
Thank you, it worked fine!!!
Ariel.
According to Bendersky:
gpc -c grx20.pas
That (if I'm right) might create the grx20.o which is the compiled unit. Am I right?
Yes, *and* it creates `grx20.gpi', the precompiled Interface part of the Unit. (Both together make up what is the `.tpu' file in TP.)
The problem is that the only grx20.pas that comes with grx22.zip is just the definition of the unit, but not the code itself. And in the src directory of the grx22 is what I think is the real source, but it's all written in C. So, how can I compile it?
You don't need to: In the directory `/djgpp/contrib/grx22/lib/' there is a file `libgrx20.a'. That's the compiled library which is linked to your programs when you add the `-lgrx20' command line parameter. (If you are using RHIDE, define and activate `grx20' as a library in the `Options|Libraries' menu.)
It says something about a turbo C make. So I think that's what I need to compile the unit. Where do I get it?
GNU make is okay, too. See `doc/grx22.txt', section "Installation for DJGPP".
Hope this helps,
Peter
-- Peter Gerwinski, Essen, Germany, free physicist and programmer Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997 PGP key fingerprint: AC 6C 94 45 BE 28 A4 96 0E CC E9 12 47 25 82 75 Fight the SPAM! - http://maps.vix.com/
--- Ariel Bendersky bender@einstein.com.ar