Hi!
I switched from Microsoft Visual C++ 6 to Code::Blocks.
First it works fine... but soon i get an error.
I wanted to create a class... but why it dont works?
Code:
class Test
{
public:
Test();
~Test();
protected:
private:
};
But when i compile it ... i get some errors:
error: syntax error before 'Test'
error: syntax error before '{' token
When i compile it with MSVCPP 6 it works fine...
Any ideas?
_____________________________________________
Additionally I have got a dislike in the Class Wizard Plugin:
I think it should be more integrated.
And the Filenaming for the class CTest... is ctest.cpp and ctest.h... where can I change the
Filenaming to Test.cpp...
_____________________________________________
...ehm... 3 days lasted since install... but i uninstalled code::blocks and installed it again... but no change :(
Everytime he say he doesn't know class ... that's confusing because he knows public: and private:, but when he gets to
protected: he writes a syntax error :x
... i think the problem is caused by the code::blocks editor... i compiled it with code::blocks and the microsoft visual c++ 6 compiler and it dont work...
Edit: I think the compiler or the editor interprete it like a function... because when i change the Position of the classname to the end he wants to have brackets... Example:
class
{
public:
CTest();
~CTest();
protected:
private:
} CTest;
Now he wants brackets:
class()
{
public:
CTest();
~CTest();
protected:
private:
} CTest;
But its definately Wrong!!! Any ideas?