29 Jun 2012 23:05
error in compiling hello ecos world program
abhishek srivastava <just_abhi22 <at> yahoo.co.in>
2012-06-29 21:05:15 GMT
2012-06-29 21:05:15 GMT
hi while compiling basic.c (hello ecos world) program, i am getting following error.why? abhi <at> abhi-HP:~/Desktop/working_ecos/basic_app$ export PATH=/home/abhi/ecos/gnutools/i386-elf/bin:$PATH abhi <at> abhi-HP:~/Desktop/working_ecos/basic_app$ make i386-elf-gcc -c -o basic1.o -g -Wall -I/home/abhi/Desktop/work_ecos/ecos_install/include -ffunction-sections -fdata-sections basic1.c basic1.c:21:44: error: cyg/kernel/kapi.h: No such file or directory basic1.c:22:57: error: cyg/infra/diag.h: No such file or directory basic1.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘thread_a_obj’ basic1.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘thread_b_obj’ basic1.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘thread_a_hdl’ basic1.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘thread_b_hdl’ basic1.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sem_signal_thread’ basic1.c:48: error: expected ‘)’ before ‘data’ basic1.c:72: error: expected ‘)’ before ‘data’ basic1.c: In function ‘cyg_user_start’: basic1.c:98: warning: implicit declaration of function ‘diag_printf’ basic1.c:102: warning: implicit declaration of function ‘cyg_semaphore_init’ basic1.c:102: error: ‘sem_signal_thread’ undeclared (first use in this function) basic1.c:102: error: (Each undeclared identifier is reported only once basic1.c:102: error: for each function it appears in.) basic1.c:107: warning: implicit declaration of function ‘cyg_thread_create’ basic1.c:109: error: ‘thread_a’ undeclared (first use in this function) basic1.c:110: error: ‘cyg_addrword_t’ undeclared (first use in this function) basic1.c:110: error: expected ‘)’ before numeric constant basic1.c:119: error: ‘thread_b’ undeclared (first use in this function) basic1.c:120: error: expected ‘)’ before numeric constant basic1.c:129: warning: implicit declaration of function ‘cyg_thread_resume’(Continue reading)
RSS Feed