器件型号:CCSTUDIO-Sitara
您好!
另一个开箱即用故障。
我有一个项目、它是一个 AM335x 项目。 使用 GNU 7.3 (linaro)编译
我转到"App Center"页面。
我安装/更新 GNU 9.2.1 (Linaro) (事后可见)

然后尝试构建... 开箱即用。 自己的头文件出现问题。
+11 -fno-threadsafe-statics @"configPkg/compiler.opt" -o"print.o" "../print.cpp"
subdir_rules.mk:30: recipe for target 'print.o' failed
cc1plus.exe: warning: switch '-mcpu=cortex-a8' conflicts with '-march=armv7-a' switch
In file included from c:\ti\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\stdio.h:60,
from ../print.cpp:1:
c:\ti\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:407:11: warning: unnecessary parentheses in declaration of '_sig_func' [-Wparentheses]
407 | void (**(_sig_func))(int);
| ^
In file included from c:\ti\ccs1011\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\arm-none-eabi\include\c++\9.2.1\cstdlib:75,
from c:\ti\ccs1011\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\arm-none-eabi\include\c++\9.2.1\bits\stl_algo.h:59,
from c:\ti\ccs1011\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\arm-none-eabi\include\c++\9.2.1\algorithm:62,
from ../print.cpp:4:
c:\ti\ccs1011\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\arm-none-eabi\include\stdlib.h:91:7: error: expected initializer before '__alloc_size2'
91 | __alloc_size2(1, 2) _NOTHROW;
| ^~~~~~~~~~~~~
In file included from c:\ti\ccs1011\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\arm-none-eabi\include\c++\9.2.1\bits\stl_algo.h:59,
from c:\ti\ccs1011\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\arm-none-eabi\include\c++\9.2.1\algorithm:62,
from ../print.cpp:4:
c:\ti\ccs1011\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\arm-none-eabi\include\c++\9.2.1\cstdlib:144:11: error: '::calloc' has not been declared
144 | using ::calloc;
| ^~~~~~
gmake: *** [print.o] Error 1
在将这些内容发布给用户之前、是否没有人对其进行测试?
