Trying to CIL "hello world" on MacOS 10.9.:

>  cilly -U__OSX_AVAILABLE_STARTING -U__BLOCKS__ x.c
gcc -D_GNUCC -E -U__OSX_AVAILABLE_STARTING -U__BLOCKS__ -DCIL=1 x.c -o
/var/folders/2p/t_bghzb48vl621vpv36s0zgm0000gn/T/cil-RnjQp46N.i
/Users/collberg/tigress/external/cil/current/obj/x86_DARWIN/cilly.asm.exe
--out /var/folders/2p/t_bghzb48vl621vpv36s0zgm0000gn/T/cil-1r0Tqw_9.cil.c
/var/folders/2p/t_bghzb48vl621vpv36s0zgm0000gn/T/cil-RnjQp46N.i
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/stdio.h[437:121-127]
: syntax error
Parsing errorFatal error: exception Frontc.ParseError("Parse error")

I think line 437 of Apple's stdio.h is this thing:

int dprintf(int, const char * __restrict, ...) __printflike(2, 3)
__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);

In the past, I've had similar problems with apple macros,
hence the
    -U__BLOCKS__
switch. However,
 -U__OSX_AVAILABLE_STARTING
doesn't seem to do it.

Any ideas?

Thanks!
Christian
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to