I got the binary code of gpc (ftp://ftp.unicamp.br/pub/gnu/gpc-2.0.sparc-sun-solaris2.5.1.tar.gz), and put it on my system (Sparc workstation running Solaris 2.5.1) When I try to compile a pascal program, I receive the message:
gpc -o tmp tmp.pas
ld: fatal: library -lgpc: not found ld: fatal: library -lgcc: not found ld: fatal: library -lgcc: not found ld: fatal: File processing errors. No output written to t
What is wrong?
Ricardo Kulzer rkulzer@lacesm.ufsm.br CRSPE-INPE/UFSM
Ricardo Luis Kulzer wrote:
gpc -o tmp tmp.pas
ld: fatal: library -lgpc: not found [...]
Obviously, something is wrong with that binary distribution: `ld' cannot locate the GCC/GPC libraries which are normally in `/usr/local/lib/gcc-lib/<platform>/<GCC version>/'.
To work around, you can set an environment variable `C_LIBRARY_PATH' to point to that directory, or pass an option `-L <directory>' to the call to `gpc'.
But since you are trying to compile gpc-19980830 anyway, I recommend to install that and forget about gpc-2.0. ;-)
Greetings,
Peter