Compilation error on codewarrior without MQX for K40

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

Compilation error on codewarrior without MQX for K40

跳至解决方案
1,500 次查看
yasararafath
Contributor II

I am trying to compile an application without MQX and using newlib.

I have a assembly routine which is begin.s which does a ROM to RAM and initializes hardware and jumps to _start.

Library option are -lc - lm -lgcc -lrdimon.

But I am getting errors like undefined reference to '_start'

Anyone reply me as soon as possible

标记 (4)
0 项奖励
回复
1 解答
1,047 次查看
c0170
Senior Contributor III

Hello Yasar Arafath,

have you proceeded with errors?

firstly, this post has no connection to the MQX, doesn't have? Second, you did not share any code, therefore let me guess. Undefined reference means definition of the symbol _start is not present in your files, linker does not see it. I would check linker and compiler paths.

This is C language oriented question than MQX :smileyhappy:

Regards,

MartinK

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,047 次查看
yasararafath
Contributor II

I have rectified it

0 项奖励
回复
1,047 次查看
c0170
Senior Contributor III

Hello Yasar Arafath,

can you share with the community how did you rectify it ? Share more details, if anybody cope with the same problem, they'll find a solution here :smileywink:

Regards,

0xc0170

0 项奖励
回复
1,048 次查看
c0170
Senior Contributor III

Hello Yasar Arafath,

have you proceeded with errors?

firstly, this post has no connection to the MQX, doesn't have? Second, you did not share any code, therefore let me guess. Undefined reference means definition of the symbol _start is not present in your files, linker does not see it. I would check linker and compiler paths.

This is C language oriented question than MQX :smileyhappy:

Regards,

MartinK

0 项奖励
回复