<div dir="ltr">Thomas,<div><br></div><div>Chimpmunk2D is written in C and I compiled it on Windows using three different compilers, each in an attempt to resolve the problem. I used mingw64 gcc with Linux cross compile, Windows Cygwin, and Windows Msys2. All fail for various reasons.</div><div><br></div><div>Regarding your missing __imp___acrt_iob_func, you can resolve individual missing dependencies by providing them yourself using the 'alias' feature of Free Pascal. This should at least resolve the dependency:<br><div><br></div><div>function acrt_iob_func: Pointer; cdecl; [ public, alias: '__imp___acrt_iob_func'];</div></div><div>begin</div><div>  Result := nil;</div><div>end;</div><div><br></div><div>According to this stack overflow, the actual implementation should return a pointer to an array of three HFILE items somewhat like FILE _iob[] = {*stdin, *stdout, *stderr}; You can see if it can compile / link by using my implementation above. In the situations where I was able to widdle down the dependencis to to one or tow, this trick worked, but unfortunately after that I would get an internal linker error. Even in cases where I resolved all dependencies without the trick I still eventually end up with an internal linker error.</div><div><br></div><div><a href="https://stackoverflow.com/questions/30412951/unresolved-external-symbol-imp-fprintf-and-imp-iob-func-sdl2">https://stackoverflow.com/questions/30412951/unresolved-external-symbol-imp-fprintf-and-imp-iob-func-sdl2</a><br></div><div><br></div><div>Finally, I also wrote a utility to search for missing dependencies on Windows.</div><div><br></div><div><a href="https://cache.getlazarus.org/images/desktop/raylib-static.png" target="_blank">https://cache.getlazarus.org/images/desktop/raylib-static.png</a><br></div><div><br></div><div>Henery Vermaak offered a similar solution for use at the command line.</div><div><br></div><div>(begin quote)</div><div><br></div><div>Note for anyone with msys2, you can make a file containing all defined external symbols like this (using atexit as an example):<br><br>find /mingw64/lib -name "*.a" -exec nm -pogC --defined-only '{}' \; 2> /dev/null > symbs.txt<br><br>Then search it with grep:<br><br></div><div>grep -w atexit symbs.txt</div><div><br></div><div>Resulting in:</div><div><br>C:/msys64/mingw64/lib/libmsvcr120.a:libmsvcr120_defs01591.o:0000000000000000 T atexit<br>C:/msys64/mingw64/lib/libmsvcr120_app.a:libmsvcr120_app_defs01268.o:0000000000000000T atexit<br>C:/msys64/mingw64/lib/libmsvcr120d.a:libmsvcr120d_defs01654.o:0000000000000000 T atexit<br></div><div><br></div><div>(end quote)<br></div></div>