[fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

Ladislav Karrach webmaster at mint.sk
Tue Mar 14 15:47:49 CET 2017


> Did you try this:
>   function ippiThreshold(pSrcDst: PIpp8u; srcDstStep: int;
>           roiSize: IppiSize; thresholdLT: Ipp8u; valueLT: Ipp8u; thresholdGT: Ipp8u;
>           valueGT: Ipp8u): IppStatus; external 'ippi.dll' name 'ippiThreshold_LTValGTVal_8u_C1IR';
> You should use
> objdump -p ippi.dll
> to get the names of the exported procedures/functions.
Yes I know, this work: external 'ippi.dll' (I have added also "stdcall")
But my question was regarding how to staticaly link provided libraries 
into my EXE (so I do not want distribute also all DLLs)
Just like one can do it in C/C++

-Laco




More information about the fpc-devel mailing list