Part Number: MSP430-GCC-OPENSOURCE
Tool/software: Code Composer Studio
Hello,
Using GNU C++ 8.3.0.16 (Mitto Systems Limited) in CCS, my code compiles just fine with gcc option -std=c++14 but things get weird with:
-std=gnu++14
I get this first error:
In file included from c:\programs\ti\ccs920\ccs\tools\compiler\msp430-gcc-8.3.0.16_win32\msp430-elf\include\math.h:6,
from c:\programs\ti\ccs920\ccs\tools\compiler\msp430-gcc-8.3.0.16_win32\msp430-elf\include\c++\8.3.0\cmath:45,
\ti\ccs920\ccs\tools\compiler\msp430-gcc-8.3.0.16_win32\msp430-elf\include\sys\select.h:73:12: error: 'int select(int, _types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)' redeclared as different kind of symbol
int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
() ^~~
(and I do not understand how sys/select.h could be included by math.h)
-std=C++17
-std=gnu++17
I get this first error:
c:\programs\ti\ccs920\ccs\tools\compiler\msp430-gcc-8.3.0.16_win32\msp430-elf\include\c++\8.3.0\iosfwd:95:24: error: 'std::allocator' is not a template
typename _Alloc = allocator<_CharT> >
^~~~~~~~~
Any idea?!
Thank you.