This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Linking problems in adding QUICCII ethernet driver
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] Linking problems in adding QUICCII ethernet driver
- From: "N.Suresh" <nsuresh at cdotb dot ernet dot in>
- Date: Tue, 09 Oct 2001 10:23:30 +0530
Hi,
I was able to compile my QUICCII net ethernet drivers package.
It has been put into libextras.a.
But when i try to compile the application, it is giving
following error.
<cut>
powerpc-eabi-gcc -msoft-float -mcpu=860 -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
-fvtable-gc -finit-priority -Wp,-MD,clock.tmp -c -o hello.o -g -D__ECOS
-Wall -I/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net1/install/include
-ffunction-sections -fdata-sections hello.c
hello.c:10: warning: function declaration isn't a prototype
powerpc-eabi-gcc -msoft-float -mcpu=860 -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
-fvtable-gc -finit-priority -Wp,-MD,clock.tmp -nostartfiles -Xlinker
-Map -Xlinker thread.map
-L/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net1/install/lib
-Wl,--gc-sections --whole-archive -o hello hello.o
-T/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net1/install/lib/target.ld
-nostdlib
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net1/install/lib/extras.o: In
function `quiccii_hl_eth_int':
/export/home1/nsuresh/work/Hard_Lib/ecos/packages/net/drivers/eth/quiccII/v1_0b1/src/if_hl_interface.cxx:371:
undefined reference to `net_memcpy(void *, void *, int)'
collect2: ld returned 1 exit status
make: *** [hello] Error 1
</cut>
Basically all the reference to the outside (libtarget.a) is failing.
My driver is in c++.
is it a problem ? or any idea what's the error.
bye
thanx in advance
--
!============================================================================!
= Suresh N., Research Engineer, C-DoT, Bangalore. =
= Call me at : OFF: 2383951(Dir) / 2263399 (268) RES: 3334248 =
= Alternate email : nsur_mys@email.com =
= QOT: For fast-acting relief, try slowing down.
!============================================================================!