[SOLVED] ESP8266_NONOS_SDK_V1.5.4_16_05_20 compiler problem?
[SOLVED] ESP8266_NONOS_SDK_V1.5.4_16_05_20 compiler problem?
Postby lou0908 » Wed Jun 22, 2016 1:16 pm
I use ESP8266_NONOS_SDK_V1.5.4_16_05_20, I found that my application can not find 'uart.h', but the file is existed in driver_lib document really, the phenomenon is shown as below, I need your help, thank you.
Re: ESP8266_NONOS_SDK_V1.5.4_16_05_20 compiler problem?
Postby pratik » Wed Jun 29, 2016 10:38 pm
Hello Lou0908,
You will need to modify the makefile to make the compiler include the file. For example, you can add
INCLUDES += -I <relative_path>
Where <relative_path> is the relative path of uart.h and the makefile you modify should be the one in the directory of the file that is calling the uart function.
The second alternative (which may not work sometimes) is that... you can copy and paste the file uart.h along side the C file that is calling the function.
Let me know how it goes!
You will need to modify the makefile to make the compiler include the file. For example, you can add
INCLUDES += -I <relative_path>
Where <relative_path> is the relative path of uart.h and the makefile you modify should be the one in the directory of the file that is calling the uart function.
The second alternative (which may not work sometimes) is that... you can copy and paste the file uart.h along side the C file that is calling the function.
Let me know how it goes!

Re: ESP8266_NONOS_SDK_V1.5.4_16_05_20 compiler problem?
Postby lou0908 » Sat Jul 09, 2016 9:12 am
pratik wrote:Hello Lou0908,
You will need to modify the makefile to make the compiler include the file. For example, you can add
INCLUDES += -I <relative_path>
Where <relative_path> is the relative path of uart.h and the makefile you modify should be the one in the directory of the file that is calling the uart function.
The second alternative (which may not work sometimes) is that... you can copy and paste the file uart.h along side the C file that is calling the function.
Let me know how it goes!
Thank you ,the problem is solved under your guidance
Who is online
Users browsing this forum: No registered users and 284 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.