Undefined reference problem

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

Undefined reference problem

跳至解决方案
4,444 次查看
rfeichubuinm
Contributor I

Hi everyone! I'll keep it as short as possible...

I am getting these errors:

1err.PNG

  • I've already included #include "app_ADC.h" in both main.c and app_ADC.c
  • Both, header and source files, are located in folder Application.
  • I've already added the include paths to the compiler, libraries to the linker and the paths to paths and symbols.5err.jpg

6err.jpg

errCaptura.PNG

  • I'm using MCUXpresso IDE v11.0.1 [Build 2563].

Any suggestion?

Thanks a lot.

0 项奖励
回复
1 解答
4,323 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Ramiro,

I guess app_ADC_init is not compiled. The .c file which has the app_ADC_init is not add into make list. You can write any wrong letter in to app_ADC_init and compile again. If the compiler does not report error, that is it.

Please delete that folder from project then add again. Please add in this way

pastedImage_1.png 

Regards,

Jing

在原帖中查看解决方案

3 回复数
4,324 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Ramiro,

I guess app_ADC_init is not compiled. The .c file which has the app_ADC_init is not add into make list. You can write any wrong letter in to app_ADC_init and compile again. If the compiler does not report error, that is it.

Please delete that folder from project then add again. Please add in this way

pastedImage_1.png 

Regards,

Jing

4,323 次查看
rfeichubuinm
Contributor I

Thanks a lot! That was it!

0 项奖励
回复
3,742 次查看
Cococarbine
Contributor II

Also confirms this works.  I was copying a "video" folder from another project over, and got the same error.  Creating the source folder then copying the files is the way to go.  

0 项奖励
回复