tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Simple failed test on MacOS


From: Pedro A ARANDA
Subject: [Tinycc-devel] Simple failed test on MacOS
Date: Tue, 13 Nov 2012 15:03:03 +0000

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]