public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] error in compiling hello ecos world program
@ 2012-06-29 21:05 abhishek srivastava
  2012-07-05  2:14 ` Michael Bergandi
  0 siblings, 1 reply; 2+ messages in thread
From: abhishek srivastava @ 2012-06-29 21:05 UTC (permalink / raw)
  To: ecos discuss



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-05  2:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-29 21:05 [ECOS] error in compiling hello ecos world program abhishek srivastava
2012-07-05  2:14 ` Michael Bergandi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).