[fpc-pascal] Libnodave on linux
Peter Andersen
peter at smedekrogen.dk
Fri Feb 4 21:24:58 CET 2011
Den 04-02-2011 21:04, Jonas Maebe skrev:
>
> On 04 Feb 2011, at 20:44, Jeppe Johansen wrote:
>
>> Try to do a fpc -k-lc testISO_TCP.pas
>>
>> That should instruct the linker to link libc too
>
> That's a very bad way to link libc, because afaik it bypasses all compiler detections for the fact that you are linking to that library (and doing so requires using different startup code). Instead, either add {$linklib c} to the source, or add the "initc" unit to the uses clause.
>
>
> Jonas_______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Please could you explain it a little bit more.
I am new to this.
I have programmet in Dos and on windows for years. But with linux using
shared lib i am total new.
--
/ Peter Andersen
/ Skanderborg
/ Danmark
More information about the fpc-pascal
mailing list