This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
function not found in extras.o
- From: "kross at elands dot co dot nz" <kross at elands dot co dot nz>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 29 Mar 2005 16:40:53 +1200
- Subject: [ECOS] function not found in extras.o
- Reply-to: kross at elands dot co dot nz
Hi,
We have created a library and built it using ecos-config.
I get the error below to a simplified main.c
As you can see extras.o contians the wanted function.
How do I get my app to talk to my driver?
any ideas to try.
Keith Ross
---------- Complile G++ ----------
g++ for arm
make INSTALL_DIR=C:/elands/e800/ecos-work/e800_install FILE=main
--makefile=C:/elands/e800/E800_1_source/Environment/GenericMakefilegpp
arm-elf-g++ -c -o main.o -IC:/elands/e800/ecos-work/e800_install/include -Wall
-mcpu=arm7tdmi -mno-short-load-words -Wall -Wpointer-arith -Wstrict-prototypes
-Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections
-fno-rtti -fno-exceptions -fvtable-gc -finit-priority -O0 -mno-sched-prolog main.c
arm-elf-g++ -nostartfiles -LC:/elands/e800/ecos-work/e800_install/lib -Ttarget.ld
-mcpu=arm7tdmi -mno-short-load-words -Wl,--gc-sections -Wl,-static -g -nostdlib
-o main.elf main.o
main.o: In function `main':
/ecos-c/TEMP/main.c:7: undefined reference to `modem_wait_incoming_call(void*)'
collect2: ld returned 1 exit status
make: *** [main.elf] Error 1
Output completed (12 sec consumed) - Normal Termination
---------- Compile end
----------- Main.c -----------------
#include <cyg/io/eld_modem.h>
int main(int argc, char *argv[])
{
cyg_io_handle_t han_modem;
modem_wait_incoming_call(&han_modem); // eld_modem function
return 0;
}
----------- main.c end ---------------
---------- Find in Files ----------
"C:\elands\E800\ecos-work\e800_build\elands_ecos\io\modem\v2_0\src\elands_ecos_io_modem_eld_modem.o"(3,25):D
"C:\elands\E800\ecos-work\e800_install\lib\extras.o"(2,12):#
2 occurrences have been found.
Output completed (15 sec consumed)
---------- end Find ----------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss