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]
Other format: [Raw text]

Linking problem


When I try to link my application I get the following output:
.\obj/twothreads.o: In function `cyg_user_start':
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:27: undefined re
ference to `cyg_mutex_init'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:27: relocation t
runcated to fit: R_PPC_REL24 cyg_mutex_init
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:29: undefined re
ference to `cyg_thread_create'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:29: relocation t
runcated to fit: R_PPC_REL24 cyg_thread_create
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:32: undefined re
ference to `cyg_thread_create'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:32: relocation t
runcated to fit: R_PPC_REL24 cyg_thread_create
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:36: undefined re
ference to `cyg_thread_resume'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:36: relocation t
runcated to fit: R_PPC_REL24 cyg_thread_resume
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:37: undefined re
ference to `cyg_thread_resume'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:37: relocation t
runcated to fit: R_PPC_REL24 cyg_thread_resume
.\obj/twothreads.o: In function `simple_program':
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:48: undefined re
ference to `cyg_thread_delay'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:48: relocation t
runcated to fit: R_PPC_REL24 cyg_thread_delay
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:55: undefined re
ference to `cyg_mutex_lock'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:55: relocation t
runcated to fit: R_PPC_REL24 cyg_mutex_lock
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:59: undefined re
ference to `cyg_mutex_unlock'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:59: relocation t
runcated to fit: R_PPC_REL24 cyg_mutex_unlock
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:60: undefined re
ference to `cyg_thread_delay'
/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw/twothreads.c:60: relocation t
runcated to fit: R_PPC_REL24 cyg_thread_delay
make: *** [.\output/ram.elf] Error 1
make: Leaving directory `/ecos-c/eCos-Work/Test/untitled_single_gnu_TNO_rtw'
Finished

In my opinion the linker is missing libraries (libgcc.a libsupc++.a) but I use
the GROUP(libtarget.a libgcc.a libsupc++.a) in my linkerscript. So I don't
understand why it cannot find these libraries. Does anyone have any suggestions?


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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