[fpc-pascal] $LINKLIB MSVCRT on windows/osx
md at rpzdesign.com
md at rpzdesign.com
Sun Mar 9 19:25:54 CET 2014
Marco:
Thanks for your response.
I am trying to use {$LINKLIB ceecodelib.a} .
But this compiled c code makes references to Windows C Runtime calls
like _memcpy, etc.
Under linux, I was able to use {$LINKLIB c} and it picked up all the
unresolved references for the linker.
Under Windows Win32 (On Windows 7,8, etc), I do not see any blogs or
posts that indicate how to resolve references
like linking to the C runtime (msvcrt.dll)
Instead of manually providing a link to msvcrt.dll, I want to tell the
linker to look for unresolved references there.
I also have to get the problem solved on OSX.
Thanks for any advice you may have,
Cheers,
md
On 3/9/2014 1:53 PM, Marco van de Voort wrote:
> In our previous episode, md at rpzdesign.com said:
>> Has anybody got a clue how to statically link the windows c run time with
>> lazarus/freepascal on Windows 7/8 x32 or x64?
> No idea.
>
>> Looking at gdbint.pp, there are all sorts of references to {$LINKLIB
>> libmsvcrt.a}
>>
>> But there is only libmsvcrt.a when I install MingW 4.8.1 compiler
>>
>> Since forum.lazarus.freepascal.org is no longer available, any prior
>> posts about this topic are gone.
> Those afaik are not about statically linking msvcrt, but about the gdb
> C (and the C/Unix libs it depends on) needing this library to link to
> the msvcrt DLL. IOW it is an import library.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list