This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem regarding compiling and running the applicatio!!!


Hi,
  While compiling the program written in CYGWIN, I am not able to compile
the program.

I path for the kapi.h is as follows

C:/Pc/I386_install/include/cyg/kernel


I have compiled the program by writting the following lines at command
prompt of the cygwin.

gcc -I/C/Pc/I386_install/include



I am getting the following linker error
administrator@TP2D1 ~/test
$ gcc -I/C/Pc/I386_install/include thread.c
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0x4b):thread.c:
undefined re
ference to `cyg_mutex_init'
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0x75):thread.c:
undefined re
ference to `cyg_thread_create'
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0x9f):thread.c:
undefined re
ference to `cyg_thread_create'
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0xb0):thread.c:
undefined re
ference to `cyg_thread_resume'
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0xc1):thread.c:
undefined re
ference to `cyg_thread_resume'
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0x17c):thread.c:
undefined r
eference to `cyg_thread_delay'
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0x1bf):thread.c:
undefined r
eference to `cyg_mutex_lock'
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0x1e7):thread.c:
undefined r
eference to `cyg_mutex_unlock'
/c/DOCUME~1/supratim/LOCALS~1/Temp/cc8akHTF.o(.text+0x1fa):thread.c:
undefined r
eference to `cyg_thread_delay'
/usr/lib/libcygwin.a(libcmain.o)(.text+0x6a):libcmain.c: undefined reference
to
`WinMain@16'
collect2: ld returned 1 exit status

Please let me know at the earlest what may be the problem and how to solve
it.

Regards
Supratim Chakraborty

E-mail:supratimc@convergelabs.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]