-1

I am trying to compile this with tcc

enter image description here

and I have these errors

enter image description here

Before the error it was "Cannot find pthread.h" and I copied pthread,pthread_compat,pthread_signal,pthread_time,pthread_unistd header files from gcc include dir to tcc include dir ! ... and now I have the above errors.. I think is something with linking but I don't know exactly :/

sepp2k
  • 363,768
  • 54
  • 674
  • 675

1 Answers1

0

Copying header files from the gcc include dir was neither required nor a good idea; better use tcc option: -Igcc-include-dir-path.

Anyway, now you will need to link your program to the pthread library in order complete build. Look in the gcc directory for a file named pthread.a or pthread.lib, there you have the gcc libraries directory. Then when you get this directory path, add the following options to the tcc command-line: -Lgcc-library-dir-path -pthread.

John
  • 21
  • 4