Downloaded the installer for win64. I get the following link error when trying to run a simple hello_world,c that includes cthread.h and call to thrd_create() to create one thread. The hello_world.c without cthreads works.
tcc: error: undefined symbol 'GetLargePageMinimum'
tcc: error: undefined symbol 'OpenProcessToken'
tcc: error: undefined symbol 'LookupPrivilegeValueA'
tcc: error: undefined symbol 'AdjustTokenPrivileges'
This is the contents of my .bat file:
set TCC_PATH="C:\Program Files\tcc2"
set lib_path=-I%TCC_PATH%\include -I%TCC_PATH%\include\winapi -L%TCC_PATH%\lib -pthread -Wl,-rpath=%TCC_PATH%\lib
%TCC_PATH%\bin\tcc.exe %lib_path% -run hello_world.c
Not sure what I am missing??