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]

function not found in extras.o


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


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