Difference Between *.o and *.asm.o

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

Difference Between *.o and *.asm.o

跳至解决方案
2,570 次查看
dvona
Contributor II
Greetings,
 
I am trying to link a project in Code Warrior for the HCS08QG8 and receiving an error from the linker that I don't understand (and the help is not much help).  THe error is L1818 duplicated symbol.
 
The part I don't understand is that starting from init.asm it generates this message saying that the duplicate occurs in init.o and init.asm.o.  What are these two file types and why would it be generating them in such a way as to cause a duplicate error with the linker?
 
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
993 次查看
CrasyCat
Specialist III

Hello

The message L1818 is generated when the same symbol is define several times in the application.

According to the message you specify I suspect you have added a file init.asm and init.o to your project. And probably the file init.o is an object file you have created previously containing code for init.asm.

I would recommend you to remove the file init.o from the project and re-link the application.

Also make sure the file init.o is not specified in your application .prm file.

If this does not help, please submit a service request through our web page and attach your project to the SR to get assistance from one of our support engineer. 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
1 回复
994 次查看
CrasyCat
Specialist III

Hello

The message L1818 is generated when the same symbol is define several times in the application.

According to the message you specify I suspect you have added a file init.asm and init.o to your project. And probably the file init.o is an object file you have created previously containing code for init.asm.

I would recommend you to remove the file init.o from the project and re-link the application.

Also make sure the file init.o is not specified in your application .prm file.

If this does not help, please submit a service request through our web page and attach your project to the SR to get assistance from one of our support engineer. 

CrasyCat

0 项奖励
回复