<p>Am 14.03.2017 14:33 schrieb "Sven Barth" <<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>>:<br>
><br>
> Am 14.03.2017 13:30 schrieb "LacaK" <<a href="mailto:lacak@zoznam.sk">lacak@zoznam.sk</a>>:<br>
> ><br>
> > Hi,<br>
> ><br>
> > I have C/C++ librarby (".lib" for Windows and ".a" for Linux) from Intel IPP package (they distribute ".lib" and also ".dll" for Windows and ".a" for Linux)<br>
> ><br>
> > Can I link in FPC (on Windows) at compile time to this ".lib" versions ? Or only possible way is link at runtime using ".dll" (and distribute DLLs with my EXE)?<br>
> > (I guess, that FPC can not link to libraries not created in FPC itself. So format of supplied ".lib" is not compatible with what FPC expects)<br>
> ><br>
> > I am trying do something like:<br>
> > {$linklib libippi}<br>
> > function ippiThreshold_LTValGTVal_8u_C1IR(pSrcDst: PIpp8u; srcDstStep: int;<br>
> > roiSize: IppiSize; thresholdLT: Ipp8u; valueLT: Ipp8u; thresholdGT: Ipp8u;<br>
> > valueGT: Ipp8u): IppStatus; external; // 'ippi.dll';<br>
> ><br>
> > (In Project Options I have path to libippi.a in -Fl)<br>
> ><br>
> > But I get error: test_IPP.lpr(24,1) Error: Undefined symbol: IPP_IPPITHRESHOLD_LTVALGTVAL_8U_C1IR$PIPP8U$LONGINT$IPPISIZE$BYTE$BYTE$BYTE$BYTE$$IPPSTATUS<br>
> ><br>
> > I am doing something wrong or just this is not possible ?<br>
> ><br>
><br>
> You might want to try the external linker using -Xe. The internal linker does not yet support COFF import libraries.</p>
<p>Small correction: I meant "static COFF libraries", not "COFF import libraries" (the later can be considered a special case of the former though).</p>
<p>Regards,<br>
Sven</p>