hi
while compiling basic.c (hello ecos world) program, i am getting following error.why?
abhi@abhi-HP:~/Desktop/working_ecos/basic_app$ export PATH=/home/abhi/ecos/gnutools/i386-elf/bin:$PATH
abhi@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’
basic1.c:129: error: ‘thread_a_hdl’ undeclared (first use in this function)
basic1.c:130: error: ‘thread_b_hdl’ undeclared (first use in this function)
make: *** [basic1.o] Error 1
in Make file, i have added path as
PKG_INSTALL_DIR = /home/abhi/Desktop/work_ecos/ecos_install
XCC =i386-elf-gcc
## Build flags.
CFLAGS = -g -Wall -I$(PKG_INSTALL_DIR)/include -ffunction-sections -fdata-sections
LDFLAGS = -nostartfiles -L$(PKG_INSTALL_DIR)/lib -Wl,--gc-sections -Wl,--Map -Wl,basic1.map
LIBS = -Ttarget.ld -nostdlib
LD = $(XCC)
.....etc
please help.
Abhishek
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
[Linux Embedded]
[U-Boot V2]
[Linux Kernel]
[Linux MIPS]
[Linux ARM]
[Linux for the Blind]
[Linux Resources]
[Photo]
[Yosemite]
[ISDN Cause Codes]
[ECOS Home]
[Site Home]