Prof. A Olowofoyeku (The African Chief) wrote:
On 25 Sep 2001, at 11:08, Frank Heckenbach wrote: [...]
gpc -shared -o libmylib.so mylib.pas
Strange - my Windows versions of GPC (both Mingw and Cygwin) do not understand '-shared' - but GCC seems to recognise it.
I don't know how it was built -- ISTR there are some patches used, and perhaps they disable `-shared' (but why?).
Anyway, it shouldn't be a big issue, you can compile with GPC and link with GCC, something like:
gpc -c mylib.pas gcc -shared -o libmylib.so mylib.o -lgpc -lm
Frank