Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem linking hello_world.c using cthreads, release 0.9.29 windows x86_64, #3

Open
bishopdg1873 opened this issue Jan 6, 2025 · 0 comments

Comments

@bishopdg1873
Copy link

bishopdg1873 commented Jan 6, 2025

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??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant