Okay, had tried ...<br><br>{$linklib msvcrt} // libmsvcrt.a copied from Linux /usr/i686-mingw-w64/lib<br>{$linklib tess} // my static lib<br><br>Then I installed dependency walker (per your advice) and inspected msvcrt.dll. That dll seems to have the missing functions but with the names a bit different in places (it has a malloc, but no _malloc). I swapped the linklib below reversing the order:<br>
<br>{$linklib tess}<br>{$linklib msvcrt}<br><br>And tried to recompile a program. Now the only undefined symbols are:<br><br>Error: Undefined symbol: __assert<br>Error: Undefined symbol: _longjmp<br>Fatal: There were 2 errors compiling module, stopping<br>
<br>Looking at the msvcrt.dll function list in dependency walker is see:<br><br>_assert<br>longjmp<br><br>So FPC is not picking up these functions. What should I try next to get those two functions linking?<br>