AnsweredAssumed Answered

ostringstream broken?

Question asked by spoilerhead on May 19, 2011
Latest reply on May 19, 2011 by spoilerhead

Hi,

 

I'm trying to use a ostringstream in VDSP++ 5.0 Update9 on a Blackfin 537

my problem is, that i can't use it.

 

the compiler aborts with this errors:

 

"C:\Programme\Analog Devices\VisualDSP 5.0\Blackfin\include\cplus\ostream", line 499: cc0054: {D} error:
          too few arguments in macro invocation
  streamsize _Count)
                   ^

 

"C:\Programme\Analog Devices\VisualDSP 5.0\Blackfin\include\cplus\ostream", line 498: cc0079:  error:
          expected a type specifier
  _Myt& write(const _Elem *_Str,
        ^

 

"C:\Programme\Analog Devices\VisualDSP 5.0\Blackfin\include\cplus\istream", line 659: cc0054: {D} error:
          too few arguments in macro invocation
  _Myt& read(_Elem *_Str, streamsize _Count)
                                           ^

 

"C:\Programme\Analog Devices\VisualDSP 5.0\Blackfin\include\cplus\istream", line 659: cc0079:  error:
          expected a type specifier
  _Myt& read(_Elem *_Str, streamsize _Count)
        ^

 

"C:\Programme\Analog Devices\VisualDSP 5.0\Blackfin\include\cplus\istream", line 692: cc0054: {D} error:
          too few arguments in macro invocation
  read(_Str, _Num < _Count ? _Num : _Count);// read available
                                          ^

 

"C:\Programme\Analog Devices\VisualDSP 5.0\Blackfin\include\cplus\istream", line 692: cc0029:  error:
          expected an expression
  read(_Str, _Num < _Count ? _Num : _Count);// read available
  ^

 

 

 

the minimum file to reproduce this is:

 

#include <sstream>
ostringstream x;

 

so is it me doing something wrong, or is it a compiler/library bug?

 

regards

dieter

Outcomes