First of all : Hello.

I really rarely answer (when I unexpectedly could), BUT :

with tcc, this (test.c)

#include <stdio.h>
#include <pthread.h>

int main(void) {
  printf("%d\n", PTHREAD_PRIO_NONE);
  return 0;
}

|compiles and ouputs :|

|ian@KsyNET-0:~$ tcc -run test.c
0
ian@KsyNET-0:~$
|

|Furthermore, I really don't catch the concept of "|comes with GCC by default", since pthread.h is a unix default — and what's the point of "I thought that TCC was supposed to be GCC compatible" ?? The main aim of tiny c is to be a very fast and reliable C compiler. Whenever some flags are compatible with the GCC ones, it is only for convenience (in my opinion). By the way, GCC itself uses some flags, such as -c or -o, ONLY to be compatible with the good old 'cc' and its legacy...

Finally, I think that you should start searching in your include dir...

Regards,

ian

|
|

Le 07/02/2024 à 05:25, Videogamer555 a écrit :
I was trying to compile a program that requires pthread.h (which is a header file that comes with GCC by default, and I thought that TCC was supposed to be GCC compatible) but TCC is missing pthread.h unfortunately. So I can't compile the program who's source code I downloaded, because its source code doesn't have pthread.h and instead expects the compiler to already have this file. Please ship TCC with pthread.h from now on. For now though, please tell me what the easiest way to get a copy of that file is.

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
--
-- İȃɲ ƝᵋᵃʳᶩỾ
-- *menea...@gmail.com*
-- Développeur compulsif

Attachment: OpenPGP_0xF9ADC2DB1DFA90FB.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to