This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

c++ header file for "Class"

Hello,

which spezifications / header files are necessary to use the Realview compiler for c++?

I use

#include<stdlib.h>
#include<iostream.h>

Class Array
{
  private:
        int val[19];
  public:
        int max = 2;
};

But µVision don't know the word "Class" - is it the wrong spelling or is there a necessary headerfile missing?

best wishes
Tina

Parents
  • "that's seems to be the right way"

    I don't think so!

    The "right" way, in my opinion, is to use the .cpp filetype to identify C++ files, and .c to identify pure 'C' files.
    (or, at least, to choose some other distinct, well-defined classification)

    This is the way the tools expect it, the most obvious way, and the generally-accepted way.

    It is also my experience that deliberately fighting against the tools, the obvious way, and general practice will cause you pain and grief in the future...

Reply
  • "that's seems to be the right way"

    I don't think so!

    The "right" way, in my opinion, is to use the .cpp filetype to identify C++ files, and .c to identify pure 'C' files.
    (or, at least, to choose some other distinct, well-defined classification)

    This is the way the tools expect it, the most obvious way, and the generally-accepted way.

    It is also my experience that deliberately fighting against the tools, the obvious way, and general practice will cause you pain and grief in the future...

Children