Hi folks, 

any code including <stdlib.h> will fail in tcc in MacOS

Example code fail.c:

#include <stdio.h>
#include <stdlib.h>

int main(int argc,char **argv)
{
    printf("Hello world!\n");
}

Output on the CLI:
paag:bin paag$ tcc -run fail.c
In file included from fail.c:2:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:193:
In file included from /usr/include/machine/endian.h:35:
In file included from /usr/include/i386/endian.h:99:
In file included from /usr/include/sys/_endian.h:124:
/usr/include/libkern/_OSByteOrder.h:99: error: ';' expected (got "_OSSwapInt16")

fail.c will run if you remove the <stdlib.h> inclusion

Best,
/PA
                                          
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to