I solved the problem. I thought It was not neccesary to write the "main function". Now the question is, How must the "main function" be written?
As suggest manual:
http://robertcarlsen.net/2009/10/31/ard ... clipse-989------------------
int main(void)
{
init();
setup();
for (;;)
loop();
return 0;
}
------------------
Or, as suggest by this one:
http://www.arduino.cc/playground/Code/EclipseThis one says that "you must never return from main()"
int main(void) {
/* Must call init for arduino to work properly */
init();
/****************************/
/* Add your setup code here */
/****************************/
for (;;) {
/****************************/
/*** write main loop here ***/
/****************************/
} // end for
} // end main