x10 example with v. 0012 won't compile

I am trying to use the x10 library from the arduino site with v. 0012. When I attempt to compile I get the following in the terminal. I am trying to compile the "x10_blink" example which is included in the zip file.

Any help?

In file included from /home/david/arduino-0012/hardware/cores/arduino/WProgram.h:4,

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:78: error: expected unqualified-id before 'int'

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:78: error: expected `)' before 'int'

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:78: error: expected `)' before 'int'

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:114: error: expected unqualified-id before 'int'

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:114: error: expected `)' before 'int'

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:114: error: expected `)' before 'int'

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:147: error: expected identifier before '(' token

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:147: error: expected `)' before '(' token

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:147: error: expected ',' or '...' before '(' token

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:147: error: expected initializer before ')' token

/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h:179: error: '__compar_fn_t' has not been declared

Couldn't determine program size: /usr/bin/avr-size: '/tmp/build188.tmp/sketch_081123a.hex': No such file

Thanks,

D. Hansen

With version 0011 there isn´t a compiling error...
I know it isn´t the best solution but it may be one :wink: