When trying to find a solution for the problem described in this thread; http://www.purebasic.fr/english/viewtop ... 13&t=70186 I figured out how to compile my library without __chkstk_ms calls, perfect. The only thing I had to do in order to be able to load this library in my project, was to update polink.exe from the ancient version 5 to the current version 8. This worked beautifully for the x64 of the PureBasic compiler, however it completely messed up PureBasic 5.51 x86.
I'm starting a new thread because this is not part of my original question of updating msvcrt.lib, because I haven't done that yet.
Compiling an empty project (without code) with debugger enabled yields the next error:
Code: Select all
---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '_SYS_FreeThreadObjectCallback@4'.
POLINK: error: Unresolved external symbol '_SYS_InitThreadObjectCallback@4'.
POLINK: error: Unresolved external symbol '__imp__closesocket@4'.
POLINK: error: Unresolved external symbol '__imp__WSACleanup@0'.
POLINK: error: Unresolved external symbol '__imp__WSAStartup@8'.
POLINK: error: Unresolved external symbol '__imp__PostThreadMessageA@16'.
POLINK: error: Unresolved external symbol '__imp__inet_addr@4'.
...
POLINK: fatal error: 26 unresolved external(s).
---------------------------
OK
---------------------------
Code: Select all
---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '__imp__InitCommonControlsEx@4'.
POLINK: error: Unresolved external symbol '__imp__CoInitialize@4'.
POLINK: error: Unresolved external symbol '__imp__MessageBoxW@16'.
POLINK: error: Unresolved external symbol '__imp__GetForegroundWindow@0'.
POLINK: error: Unresolved external symbol '__imp__GetWindowThreadProcessId@8'.
POLINK: error: Unresolved external symbol '__imp__IsWindowVisible@4'.
POLINK: error: Unresolved external symbol '__imp__GetWindowLongW@8'.
...
POLINK: fatal error: 11 unresolved external(s).
---------------------------
OK
---------------------------
Hopefully someone from the PB team can also shed some light on this situation, as this is possibly breaking my whole (quite massive) project