According to AuX:
I keep receiving an error when trying to compile a program I just finished. I run: 'gpc new.pas -o new' and receive 'cannot open -lgpc.'
You obviously have an installation problem: The `gpc' compiler driver program cannot locate the libraries `crt0.o' and `libgpc.a'. (This is the common source of both problems you posted to this list.)
It seems as if you have installed an "a.out" compiler on your ELF system.
Please check whether the following directories (or something similar) exist and contain the files they should:
`libgpc.a' should be in /usr/lib/gcc-lib/i486-linuxaout/2.7.2.1/
`crt0.o' should be in /usr/i486-linuxaout/lib/crt0.o
Alternatively, both files may be in directories which are in your library path. If you don't have them, get them from your GPC and GCC distribution.
sqr (Alternatively) (if my guess is right), you can install an ELF version of GPC, available on ftp://kampi.hut.fi/jtv/gnu-pascal/binary/ or on ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/binary/.
Alternatively pow 3, you can get the source of GPC (drop `binary' from the URLs above) and recompile. On a Linux system this is no real problem if you have the source of gcc-2.7.2.1 (no other version; 7MB compressed) and follow the instructions in the file `INSTALL'.
Hope this helps,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201] maintainer GNU Pascal [970714] - http://home.pages.de/~gnu-pascal/ [970125]