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.

CCS/MSP430-GCC-OPENSOURCE: C++17

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.

  • Hi,

    Please could you provide a reproducable example (msp430-elf-g++ invocation and source code) for these errors.

    Thanks,

  • Hello user 157098,

    We haven’t heard from you for a couple of days now, so I’m assuming you were able to resolve your issue.
    If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.
    If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

**Attention** This is a public forum