Hi Santosh,
santosh dwivedi wrote:
I am trying to compile and link an application with
m68k-elf-gcc compiler for coldfore MCF5282, but
getting linking error.
Here is how I am compiling and linking :
m68k-elf-gcc -I.
-I/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/vb_zigbee_platform/Interface
-I/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/common
-I/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/cpu
-I/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/drivers/clock
-I/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/drivers/uart
-I/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/cpu/headers
-I/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/platforms/m5282evb
-I/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/vb_zigbee_macphy/Source/Interface
-g -Wall -m5307 -Wl,-elf2flt -Os main.c -o pgm
-L/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/vb_zigbee_macphy/Source
-lc -lM5282_802154_Type_FFD.a
>
Result of compilation:
/usr/local/m68k-elf/bin/ld.real: cannot find
-lM5282_802154_Type_FFD.a
collect2: ld returned 1 exit status
Please note that M5282_802154_Type_FFD.a is in
directory
"/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/vb_zigbee_macphy/Source"
and I am specifying Library directory name with
-L(-L/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/vb_zigbee_macphy/Source)
option and library name with
-l(-lM5282_802154_Type_FFD.a)
Then why error m68k-elf/bin/ld.real: cannot find
-lM5282_802154_Type_FFD.a and how to fix it?
Notice the usage of "-lc". That refers to the file libc.a (when
using static libraries anyway).
-lM5282_802154_Type_FFD.a doesn't conform. If you want to link in
a library with a name like that then use a direct path to it
/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/vb_zigbee_macphy/Source/M5282_802154_Type_FFD.a
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
SnapGear -- a Secure Computing Company PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev