|
From: | ian |
Subject: | Re: [Tinycc-devel] Where do I get pthread.h? |
Date: | Wed, 7 Feb 2024 14:40:39 +0100 |
User-agent: | Mozilla Thunderbird |
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
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
-- İȃɲ
ƝᵋᵃʳᶩỾ -- MeNearly@gmail.com -- Développeur compulsif |
OpenPGP_0xF9ADC2DB1DFA90FB.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |