Making new Library

Hello,
i’m trying to make a library…
I follow instructions as this page said.
I use Linux Ubuntu 8.04 and i’ve installed gcc and gcc-avr…
When i compile the sketch as at the end of the page, Arduino’s IDE tell me:

In file included from /home/vittorio/Scrivania/Arduino/Software/arduino-0012/hardware/cores/arduino/WProgram.h:4,

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

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

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

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

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

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

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

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

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

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

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

Any idea please?

See: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1237653105#3

Damn!
Thanks Alfabeta: it works...
As people said in topic it is good idea to change the tutorial...

Why etracer wrote:

#undef int
#undef char
#undef long
#undef byte
#undef float
#undef abs
#undef round

What does it means?
Sorry for my basic questions...

darn!
Thanks Alfabeta: it works…
As people said in topic it is good idea to change the tutorial…

Yes, that would be a good idea. I think a lot of the documentation could benefit from a review.

Why etracer wrote:

#undef int




What does it means?
Sorry for my basic questions...

It simply tells the compiler that “if you know anything that’s called int, forget it”

MSDN on the #undef directive