Undefined reference problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Undefined reference problem

ソリューションへジャンプ
4,473件の閲覧回数
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,352件の閲覧回数
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,353件の閲覧回数
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,352件の閲覧回数
rfeichubuinm
Contributor I

Thanks a lot! That was it!

0 件の賞賛
返信
3,771件の閲覧回数
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 件の賞賛
返信