How to emport the library's in a C programme?

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

How to emport the library's in a C programme?

486 次查看
msuhaibs
Contributor II

I am attempting to create a C programme that I can use for my JN5169 microcontroller, by adapting one of the example files provided (on the “JN-AN-1171” package).

After importing the file to the Beyond Studio for NXP, the path for the according libraries are not being declared.  

All of the libraries needed are available in the “JN-SW-4168” file (that I have downloaded), but I am finding myself having to declare the path for EVERY .h file.

This means that I have to go to properties>C/C++ general>path and symbols and then declare the path.

How can this be avoided?

Many thanks,

 

标记 (2)
0 项奖励
回复
1 回复

437 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Suhaib,

The h file should be included in the SDK or in the project folder.

###############################################################################
# Application Source files
.
.
APPSRC += app_main.c
APPSRC += pdum_gen.c
.

Do you define the .c file in the makefile?

Regards,

Mario

0 项奖励
回复