"Khimenko Victor" wrote:
Sorry for this newbie question:
Where can I find Borland compatible replacement units (system, dos, crt)?
They are included in latest versions of GPC. Youmust compile them manually though: it's not part of installation process.
Or you compile your programs with `--automake'. On OS/2, `--automake' probably has the same bugs as on Dos, so you might need `--autobuild' instead. (I'm writing a utility to solve these problems.)
The gpc FAQ led me to believe that they do not yet exist, but people are discussing them so they must!
AFAIK all existing documetation for GPC is REALLY old :-((
Could someone please take a gun a shoot this FAQ? ;-)
Or, better yet, update it? :-)
If it matters, I'm using the version of gpc running under EMX on OS/2. I'm trying to develop some statistical programs that will run under any version of gpc, however.
Oh. I never tried to use gpc on non-*nix platform. It's possible to do (even CRT can be compiled AFAIK) but I'm not know details...
As said, you need the curses library.
The libraries used (curses for CRT, and GMP for the GMP unit as well as RX for the RegEx unit, both not BP compatible units, but new GPC units) can be found on ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/libs/
There are binaries for some platforms, but not yet for EMX (you're the first one to ask for it). If you manage to compile them (which was quite easy under DJGPP and Cygwin, and at least PDCurses has special OS/2 build instructions and mentions EMX, so it seems to be supported), please upload them for the benefit of other users.
Frank
Hi
I recently tried to install gpc on my box. I have Turbo Linux Workstation 4.0.5 installed. I upgraded kernel to 2.2.13. Main compiler (under which this distribution is compiled) is: egcs-2.91.60 19981201 (egcs-1.1.1 release) installed under /usr. I also installed gcc-2.95.2 under /usr/local. I can invoke and compile with any of them, however gpc source hase patch only against gcc-2.95.2 (I grabbed the latest available version - gpc-19991030). When I run ./configure or ../gcc-2.95.2/configure (I tried to build it from source directory as well as from separate, as gcc-2.95.* suggests) it seems that it does not find gpc. --enable-languages=pascal does not change that. When I do make or make bootstrap there is no trace of gpc being built. When I do make LANGUAGES=pascal it stops with: "make[1]: *** No rule to make target `pascal', needed by `native'. Stop." I even tried patching gcc-2.95.2 with gpc-19991030, then replacing p subdirectory with the one from gpc-19990118 and building it over. I got the same result. Also as described in building notes for gpc, specifying languages to build when running make does not work anymore, and this is the way descrideb in gpc installation notes. So what is the correct way to build gpc now?
I also tried using binary packages gpc-1990118. pi.pas from demos compiles fine, but when I execute it I get "segmentation fault, core dumped". This looks like some configuration problem.
George