AnsweredAssumed Answered

VisualDSP++ 5.1.2 and Static Class Data Members

Question asked by petrveprek on May 3, 2017
Latest reply on May 12, 2017 by Kader.M

Hi,

 

I am using VisualDSP++ 5.1.2 to compile existing C++ code. I get internal/catastrophic errors in header files where, as part of a class declaration, there is a static data member. I get errors regardless of whether the member is only declared or declared and defined.

 

class Foo
{
    ...
    static const int BAR;       // Internal/catastrophic error in VisualDSP++
    static const int BAZ = 1; // Internal/catastrophic error in VisualDSP++
}

 

Same code compiles just fine using a variety of toolchains, including CCES.

 

Is this (=not being able to compile static class data members) a known problem?

 

Is there any compiler option to cope with this? (I couldn't find any.)

 

Is there any *nice* workaround? (I can refactor the code so that it does not use static class data members but is there a "nicer" solution I wonder.)

 

Thanks,

 

Petr

Outcomes