Skip to content

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

@bishopdg1873

Description

@bishopdg1873

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions