What problem with my program?

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

What problem with my program?

跳至解决方案
903 次查看
pg31321
Contributor III

My program like it:

pastedImage_1.png

When I build project,it has a error:undefined reference to "Convert_Data".

But,I defined it at previous row.

Even if defined as global variable.

It still has same error.

标签 (1)
1 解答
792 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

thanks for sharing project. Convert_Data function is not implemented in your project. It is only declared - that's why linker can't find it.

Jiri

在原帖中查看解决方案

3 回复数
792 次查看
jiri_kral
NXP Employee
NXP Employee

Hi,

where is Convert_Data() function defined? You can try declare it by this way (if it is in different object file): 

extern uint32 Convert_Data(uint8* data);

Jiri

0 项奖励
792 次查看
pg31321
Contributor III

pastedImage_1.png

Here.

Although I have not seen this usage.

My program is modified using the official sample program.

https://www.nxp.com/webapp/sps/download/preDownload.jsp

Bold guess,there are some problems with the compiler.

My program file:

https://drive.google.com/open?id=1MUmB-Bl79LJpjjJRard3N5O07nWw280S 

0 项奖励
793 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

thanks for sharing project. Convert_Data function is not implemented in your project. It is only declared - that's why linker can't find it.

Jiri