Unresolved symbols tickGet/wind_current_context_errno using libvxworks.a
Hi
Linking my vxworks application library (about 180 C++ files) against xenomai 2.1 gives me now the following errors:
../../obj/xeno-ppc/BSys_lib.a(BSysCountingSemaphore.o):BSysCountingSemaphore.cpp:
(.text+0x14d4): more undefined references to `wind_current_context_errno' follow
../../obj/xeno-ppc/BSys_lib.a(BSysTick.o): In function BSysTick::now()':BSysTick.cpp:(.text+0x1dc): undefined reference to tickGet'
It does not however complain about the other used functions like taskSpawn. Looking at /usr/xenomai/lib/libvxworks.a using nm gives me the following results:
$ nm -o /usr/xenomai/lib/libvxworks.a |grep tickGet /usr/xenomai/lib/libvxworks.a:tickLib.o:00000000 T tickGet $ nm -o /usr/xenomai/lib/libvxworks.a |grep wind_current_context_errno /usr/xenomai/lib/libvxworks.a:errnoLib.o:00000000 T wind_current_context_errno $ nm -o /usr/xenomai/lib/libvxworks.a |grep taskSpawn /usr/xenomai/lib/libvxworks.a:taskLib.o:00000d80 T taskSpawn
Is this the result that tickGet is defined as xnticks_t tickGet(void) in xenomai but as int tickGet(void) under vxWorks?
Any help would be appreciated? Thanks in advance.
Best regards
Signature · 1 line
Niklaus Giger
Quoted 2 lines
Linking my vxworks application library (about 180 C++ files) against xenomai 2.1 gives me now the following errors... Is this the result that tickGet is defined as
xnticks_ttickGet(void) in xenomai but as int tickGet(void) under vxWorks?
Hmm, that should not matter since the symbol would be the same (only C++
which mangles names would have a different signature).
More likely the library containing the symbols is mentioned before the library needing the symbols. Look for that or send along the actual call to the linker...
hth
- Tom
Signature · 4 lines
Thomas Lockhart Supervisor, Realtime Software Group Interferometry and Large Optical Systems Caltech/JPL