Marten Jan de Ruiter wrote:
Hi all,
Trying to install gpc version 20030830 I ran into a problem with ld. Singling out the problem I have the following (trivial :-) pascal program t.p. The log shows all, I hope.
including or excluding the line `uses gpc;' does not change the result.
I do not know if I have to set things correct for ld, or that the system-wide install of gpc (version 20030507) interferes with my user-install in /cluster3/deruiter/system/bin
<snip>
/cluster3/deruiter 87 % cat t.p program t;
uses gpc;
begin writeln('hello world'); end.
/cluster3/deruiter 88 % gpc --automake t.p -o t /tmp/cct9af9n.o: In function `main': /tmp/cct9af9n.o(.text+0x85): undefined reference to `__GPC_RTS_VERSION_20030830__' collect2: ld returned 1 exit status
Getting wrong 'libgpc.a' seems most likely (however the rest of info you showed looks OK). I would suggest adding -v option to 'gpc' command line -- it will show exactly how 'collect2' is invoked (in particular where it searches for libraries).