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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,251 次查看
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 项奖励
回复
1 解答
1,058 次查看
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 项奖励
回复
1 回复
1,059 次查看
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 项奖励
回复