"Alex" wrote:
Hello,
I've several questions on Gnu Pascal: I'd like to use the CRT-Unit in Gnu Pascal. How is it possible? The only procedure I need is RANDOM (CLRSCR would be nice too, but isn't necessary).
How can I do it?
Just get a current GPC version (beta 19990118 or alpha 19990813) and install either the ncurses library (for Unix system on terminals -- note that ncurses is already installed by default on most Unix systems, including most Linux distributions) or the PDCurses library (for Unix, X11 versions, and for Dos systems). These libraries (source and binaries for some platforms) are available from ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/libs/
Then, just add `uses CRT;' to your program, and don't forget the `--automake' command line parameter.
BTW, Random is not part of the CRT unit -- it's built into the compiler in current GPC versions.
Frank