Linker: could not read symbols: File format not recognized

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker: could not read symbols: File format not recognized

2,799 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Laurent van Poppelen on Thu Jan 08 05:41:07 MST 2015
Hi,

I'm trying to link a supplied library(Bluetopia.a and SS1BTA3D.a). I like to know what the, see below, error actually means? It seems that it recognizes the file but, for some reason is not compatible. Or do I miss a file inclusion?

Building target: SmartWatch.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\LocalData\projects\workspace_lpc_v750\lpc_chip_175x_6x\Debug" -L"C:\LocalData\projects\workspace_lpc_v750\lpc_board_nxp_lpcxpresso_1769\Debug" -
........................ etetera, etcetera
smartwatch/sw_bluetopia/btpskrnl/sprintf.o  ./smartwatch/sw_bluetopia/sw_bluetopia_hci.o  ./smartwatch/sw_application/sw_application.o  ./freertos/src/FreeRTOSCommonHooks.o ./freertos/src/heap_3.o ./freertos/src/list.o ./freertos/src/port.o ./freertos/src/queue.o ./freertos/src/tasks.o   -llpc_board_nxp_lpcxpresso_1769 -llpc_chip_175x_6x -lBluetopia -lSS1BTA3D_C
C:\LocalData\projects\workspace_lpc_v750\SmartWatch\smartwatch\sw_bluetopia\lib\CCS\LargeMTU\coffabi\libBluetopia.a: could not read symbols: File format not recognized
collect2.exe: error: ld returned 1 exit status
make: *** [SmartWatch.axf] Error 1

kind rgds, Laurent
0 Kudos
Reply
1 Reply

2,126 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Jan 08 06:29:54 MST 2015

Quote: Laurent van Poppelen

C:\LocalData\projects\workspace_lpc_v750\SmartWatch\smartwatch\sw_bluetopia\lib\CCS\LargeMTU\coffabi\libBluetopia.a: could not read symbols: File format not recognized


Library files should be in ELF format to link with the standard ARM GCC tools used by LPCXpresso. This error messages suggest that the Bluetopia library you are trying to link into your application is not.

Judging by the pathname you quote, I suspect from it is in COFF format. You need to obtain an ELF version.

Regards,
LPCXpresso Support
0 Kudos
Reply