[fpc-pascal] Libnodave on linux

Peter Andersen peter at smedekrogen.dk
Fri Feb 4 21:38:51 CET 2011


Den 04-02-2011 21:27, Jonas Maebe skrev:
>
> On 04 Feb 2011, at 21:24, Peter Andersen wrote:
> 	
>>> 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.
>>
>> Please could you explain it a little bit more.
>
> What is it exactly that you do not understand?

{$linklib c}
Is it possible just to add a line like:
{$/linklib c}
into the source and if yes where in the source.
I have some
{$ifdef linux}
,linux
{$endif}
should it be inside thes ifdef and endif ?


-- 
/ Peter Andersen
/ Skanderborg
/ Danmark



More information about the fpc-pascal mailing list