工具/软件:Code Composer Studio
您好!
在 CCS 中使用 GNU C++ 8.3.0.16 (Mitto Systems Limited)、我的代码使用 gcc 选项-std=c++14进行编译、但以下情况会变得奇怪:
-std=GNU++14
我得到第一个错误:
在包含在 c:\programs\ti\ccs920\ccs\tools\compiler\msp430-gcc-8.3.0.16_win32\msp430-elf\include\math.h:6中的文件中、
从 c:\programs\ti\ccs920\ccs\tools\compiler\msp430-gcc-8.3.0.16_win32\msp430-elf\include\c++\8.3.0\cmh:45、
\ti\ccs920\ccs\tools\compiler\msp430-gcc-8.3.0.16_win32\msp430-elf\include\sys\select.h:73:12:错误:'int select (int、_types_fD_set*、_types_fd_set*、timeval*)'重新声明为不同类型的符号
int select __P ((int __n、fd_set *__readfds、fd_set *__writefds、
() ^~~
(我不知道 math.h 如何包含 sys/select.h)
-std=C++17
-std=GNU++17
我得到第一个错误:
C:\programs\ti\ccs920\ccs\tools\compiler\msp430-gcc-8.3.0.16_win32\msp430-elf\include\c++\8.3.0\iosfwd:95:24:错误:'std::allocator'不是模板
Typename _Alloc =分配器 <_CharT>>
^~~~~~~~~μ A
有什么想法?!
谢谢你。