Linker Warning in CAN_Example (MQX 4.0 Project Wizard) for PXS30

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

Linker Warning in CAN_Example (MQX 4.0 Project Wizard) for PXS30

Jump to solution
478 Views
dombanger
Contributor I

Hello,

when i compile the CAN_Example project created with the MQX 4.0 Project Wizard, i get a linker warning, that some symbols are multiply defined, e.g.:

...

'Building target: CAN_Example.elf'

'Executing target #2 CAN_Example.elf'

'Invoking: PowerPC Linker'

"C:/Freescale/CW MCU v10.3/MCU/PA_Tools/Command_Line_Tools/mwldeppc" @@"CAN_Example.args" -o "CAN_Example.elf"   -l"bsp.a" -l"psp.a" -l"C:/Freescale/CW MCU v10.3/MCU/PA_Support/ewl/lib/libc_E200z650.a" -l"C:/Freescale/CW MCU v10.3/MCU/PA_Support/ewl/lib/librt_E200z650.a"

C:/Freescale/CW MCU v10.3/MCU/PA_Tools/Command_Line_Tools/mwldeppc|Linker|Warning

>multiply-defined: 'exit'  in libc_E200z650.a in the file

>D:\workspace\EPPC\workspace_codegen\ewl\EWL_C\EWL_C.PA_CmdLineData\libc_E200z6

>50\obj\abort_exit.o

>Previously defined in bsp.a in the file

>C:\Freescale\Freescale_MQX_4_0\mqx\build\cw10\bsp_twrpxs30\Debug\twrpxs30 BSP

>Files\cw_c.obj


I have this problem in other projects, too. Has anybody an idea what is going wrong here? I am using Code Warrior 10.3 and MQX 4.0.


Thanks in advance!


Best regards,

Dom

0 Kudos
1 Solution
285 Views
c0170
Senior Contributor III

Hello dombager,

wrong nothing, only linker warns you that some symbols are defined more than once (symbol resolution). Function abort_exit is defined in MQX and also in the library your application includes (libc_e200z650.a). This can be considered as informative warning.

Regards,

MartinK

View solution in original post

0 Kudos
1 Reply
286 Views
c0170
Senior Contributor III

Hello dombager,

wrong nothing, only linker warns you that some symbols are defined more than once (symbol resolution). Function abort_exit is defined in MQX and also in the library your application includes (libc_e200z650.a). This can be considered as informative warning.

Regards,

MartinK

0 Kudos