Page 1 of 1

unresolved externals (atoll)

Posted: Thu May 04, 2023 6:02 am
by superadnim
I'm compiling a static library using visual studio 2015 but when I try to compile the PB source I get this error
---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol 'atoll'.

POLINK: fatal error: 1 unresolved external(s).


---------------------------
OK
---------------------------
but my code does include

Code: Select all

#include <stdio.h>
#include <stdlib.h>
no whole program optimizations is enabled , configuration type is "static library (.lib)" and my platform toolset is v120 (Visual Studio 2013) for PB LTS 5.70

my previous library has worked fine with these settings but now that I'm including a source that uses atoll i cannot get it to work in PB even though I am including the libraries any idea what could be wrong?

maybe I am missing something perhaps the libraries used in pb don't really contain atoll because they are older?

thanks

Re: unresolved externals (atoll)

Posted: Fri May 05, 2023 7:49 am
by Fred
It's probably because we link with an old CRT to avoid to ship the VisualStudio MSVCRTx.0.dll for every PB app. You can try the UCRT patcher by chi, to see if it link ?