[SOLVED] ESP8266_NONOS_SDK_V1.5.4_16_05_20 compiler problem?

lou0908
Posts: 16
Joined: Tue Jun 21, 2016 1:49 pm

[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.
Attachments
QQ截圖20160622092132.png

pratik

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! :)

lou0908
Posts: 16
Joined: Tue Jun 21, 2016 1:49 pm

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