Can someone point me in the right direction towards solving this problem?<br><br>I built a static libraries on Linux based on some open source c and h files. I can compile things fine with gcc/mingw-265 and use ar to turn the object files into a static lib (libtess.a). The problem is when I try to compile on Windows with the static lib I get the linking errors below when I try to compile and exe which uses the functions I'm importing:<br>
<br>Error: Undefined symbol: _malloc<br>Error: Undefined symbol: _free<br>Error: Undefined symbol: __assert<br>Error: Undefined symbol: __setjmp3<br>Error: Undefined symbol: _longjmp<br>Error: Undefined symbol: _realloc<br>
Fatal: There were 6 errors compiling module, stopping<br><br>In one of my packages I am doing this:<br><br>{$linklib tess} // libtess.a compiled using i686-mingw-w64-gcc on Linux<br><br><br>On Linux I ran an nm command in the mingw-w64 folder and found those functions in libmsvcrt.a and libmsvcr100.a ... so I copied those files to my windows box and tried linking with each one (separately {$linklib msvcrt} for example) as well, but I still get the same linking errors. I also tried linking in ...<br>
<br>{$linklib user32}<br>{$linklib kernel32}<br>{$linklib msvcr100}<br>{$linklib mingw32}<br>{$linklib tess} <br><br>I'd really appreciate it if anyone could help me better understand how to work with static libraries compiled on Linux and linked on Windows.<br>
<br>Thanks.<br>