This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

使用IAR编译CC3200 SDK自带的get_time例程时出现错误

Other Parts Discussed in Thread: CC3200SDK

只修改了common.h里的SSID和密码,其余设置均为默认值

如下图所示,在链接时出现错误信息:

Error[Li060]: module "xdc_init.orm4(iar.targets.arm.rts.arm4)" contains C++ code built for use with the (E)C++98 library. This code is not link compatible with the new (C++14) library.

我尝试过把C/C++编译器改为C89,却得到了如下的错误信息:


Error[Pe268]: declaration may not appear after executable statement in block C:\TI\CC3200SDK_1.3.0\cc3200-sdk\example\common\network_if.c 427
Error while running C/C++ Compiler

Warning[Pe223]: function "vsnprintf" declared implicitly C:\TI\CC3200SDK_1.3.0\cc3200-sdk\example\common\uart_if.c 152
Warning[Pe223]: function "vsnprintf" declared implicitly C:\TI\CC3200SDK_1.3.0\cc3200-sdk\example\common\uart_if.c 310

已经尝试在谷歌和百度里搜索相关错误,但是没有得到任何相关问题的解决方案。

如果能提供任何解决办法或思路,非常感谢