0
我正在嘗試TCC在OS X下。我不得不做一些修改following this answer來編譯它。在OSX下用TCC運行ex1?
試圖運行ex1.c中包含的源我得到:
In file included from ./ex1.c:3:
In file included from /usr/local/lib/tcc/include/tcclib.h:11:
In file included from /usr/local/lib/tcc/include/stdarg.h:5:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:117:
/usr/include/sys/resource.h:249: ';' expected
在這種RESOURCE.H文件行有:
int getrlimit(int, struct rlimit *) __DARWIN_ALIAS(getrlimit);
所以我猜它是什麼與__DARWIN_ALIAS,但在ex1.c文件中包含tcclib.h之前,一個簡單的#define不起作用。任何解決方法?