What problem with my program?

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

What problem with my program?

Jump to solution
875 Views
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.

Labels (1)
1 Solution
764 Views
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

View solution in original post

3 Replies
764 Views
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 Kudos
764 Views
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 Kudos
765 Views
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