AnsweredAssumed Answered

Can't include <string>

Question asked by MagnusD on Feb 17, 2016
Latest reply on Mar 2, 2016 by Kader.M

In one of my Visual DSP projects, I get this error when I try to include the std string library

 

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.1\Blackfin\include\cplus\xiosbase", line 121: cc0020:  error:

          identifier "isspace" is undefined

  return (_Isspace(_Ch) != 0);

          ^

 

 

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.1\Blackfin\include\cplus\ostream", line 499: cc0054: {D} error:

          too few arguments in macro invocation

  streamsize _Count)

                   ^

 

 

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.1\Blackfin\include\cplus\ostream", line 498: cc0079:  error:

          expected a type specifier

  _Myt& write(const _Elem *_Str,

        ^

 

 

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.1\Blackfin\include\cplus\istream", line 659: cc0054: {D} error:

          too few arguments in macro invocation

  _Myt& read(_Elem *_Str, streamsize _Count)

                                           ^

 

 

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.1\Blackfin\include\cplus\istream", line 659: cc0079:  error:

          expected a type specifier

  _Myt& read(_Elem *_Str, streamsize _Count)

        ^

 

 

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.1\Blackfin\include\cplus\istream", line 692: cc0054: {D} error:

          too few arguments in macro invocation

  read(_Str, _Num < _Count ? _Num : _Count);// read available

                                          ^

 

 

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.1\Blackfin\include\cplus\istream", line 692: cc0029:  error:

          expected an expression

  read(_Str, _Num < _Count ? _Num : _Count);// read available

 

 

I have also tried including <locale> in this project, and it gives me the following error

 

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.1\Blackfin\include\cplus\locale", line 1: cc0035:  catastrophic error:

          #error directive: locale header not supported in Embedded C++

  #error locale header not supported in Embedded C++

 

Including both <string> and <locale> works fine in other projects I have that uses many of the same files. It seems to me like there is some setting or define somewhere that is causing this. Any idees?

Outcomes