[fpc-pascal] -Twin32 linker woes

Adriaan van Os fpc at microbizz.nl
Thu Mar 11 12:28:42 CET 2010

Marco van de Voort wrote:
> In our previous episode, Adriaan van Os said:
>> I am cross compiling with fpc svn trunk and -Twin32 on i386 Mac OS X to Win32. This works fine, 
>> except that {$linklib xxx.dll} says
> dlls are usually not $linklib'ed in FPC. What happens if you simply omit the
> linklib?

Well, then the linker complains about unresolved symbols.

Does that mean that LoadLibrary and GetProcAddress must be called for all external dll calls ?

Anyway, the "not found" message is confusing. I suggest a clarification in the section about 
{$linklib} in the Free Pascal Programmer’s Guide that only static libraries can be linked.

Thanks for your reply.


Adriaan van Os

More information about the fpc-pascal mailing list