On 27 Sep 01, at 5:02, Frank Heckenbach wrote:
[...]
I think in this case one should first put a RTS in a dynamic library of it own,
How do you do that? I would love to simply convert the libgpc.a archive itself. I have tried various things with 'ld' and 'gcc', but I have not been successful.
and then your own units into another one. The latter linking as well as the final linking of the program will both link to the dynamic RTS, so there should be now conflicts.
If libgpc.so is installed in the same directory as libgpc.a, the linker should prefer the dynamic one automatically, unless given `-static' (at least on Unix).
b. trying to link the program with gcc instead of GPC causes an 'undefined reference' error ('_p_initialize' is undefined). On the other hand, '_p_finalize' is in the DLL. Is there any reason to have one and not both of them in 'libgpc.a'?
Hmm, in my version they're both there:
# objdump --syms `gpc --print-file-name=libgpc.a` | grep -w -e # _p_initialize -e _p_finalize
Yes, they are both in mine as well - but for some reason, '_p_initialize' doesn't make it into the DLL. It is weird, because everything else is there! Any ideas?
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com