编译错误!!!

jalen
Posts: 10
Joined: Tue Mar 29, 2016 1:34 pm

编译错误!!!

Postby jalen » Wed Mar 30, 2016 1:33 am

/home/esp8266/Share/ESP8266_RTOS_SDK-master/lib/libjson.a(cJSON.o):(.text.print_number+0x48): undefined reference to `floor'
/home/esp8266/Share/ESP8266_RTOS_SDK-master/lib/libjson.a(cJSON.o):(.text.print_number+0x148): undefined reference to `floor'
/home/esp8266/Share/ESP8266_RTOS_SDK-master/lib/libjson.a(cJSON.o):(.text.parse_value+0x14): undefined reference to `pow'
/home/esp8266/Share/ESP8266_RTOS_SDK-master/lib/libjson.a(cJSON.o):(.text.parse_value+0x270): undefined reference to `pow'

Dear: 编译时出现以上错误,请指教。

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: 编译错误!!!

Postby ESP_Faye » Wed Mar 30, 2016 11:48 am

您好,

请在 makefile 中的 LINKFLAGS_eagle.app.v6 段添加 -lmirom,看是否还有问题?

感谢您对 ESP8266 的关注!

jalen
Posts: 10
Joined: Tue Mar 29, 2016 1:34 pm

Re: 编译错误!!!

Postby jalen » Wed Mar 30, 2016 1:28 pm

Espressif_Faye wrote:您好,

请在 makefile 中的 LINKFLAGS_eagle.app.v6 段添加 -lmirom,看是否还有问题?

感谢您对 ESP8266 的关注!


Dear:

我在makefile 中的 LINKFLAGS_eagle.app.v6 段添加了-lcirom -lmirom后,又提示如下错误。

/home/esp8266/Share/ESP8266_RTOS_SDK-master/lib/libminic.a(minic.o): In function `sprintf':
(.irom0.text+0x364): multiple definition of `sprintf'
/home/esp8266/Share/ESP8266_RTOS_SDK-master/lib/libcirom.a(lib_a-sprintf.o):/home/wjg/Repo/esp-open-sdk/crosstool-NG/.build/src/newlib-2.0.0/newlib/libc/stdio/sprintf.c:624: first defined here

请指教,谢谢。

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: 编译错误!!!

Postby ESP_Faye » Wed Mar 30, 2016 5:27 pm

您好,

如果增加 -lcirom,请将 -lminic 删去。

Who is online

Users browsing this forum: No registered users and 14 guests