Undefined reference problem

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

Undefined reference problem

Jump to solution
3,938 Views
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 Kudos
Reply
1 Solution
3,817 Views
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

View solution in original post

3 Replies
3,818 Views
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,817 Views
rfeichubuinm
Contributor I

Thanks a lot! That was it!

0 Kudos
Reply
3,236 Views
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 Kudos
Reply