S
Stefan Weber
Hi,
I have the following problem:
MyClass.h
---------------
class MyClass {};
This class is included somewhere in another header file:
Foo.h
--------
#include "MyClass.h"
class Foo {
MyClass* bar;
}
Unfortunately, this does not seem to work. I'm using Visual Studio
2005 and it provides the following error:
error C2143: syntax error : missing ';' before '*'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
Obviously, VS does not recognize the type properly, but I can't see
where the problem is.
Some more facts about the project: It's a COM DLL for MS Windows using
ATL, precompiled headers are turned on.
Any solution or help to track down the problem is welcome
Thanks,
Stefan Weber
I have the following problem:
MyClass.h
---------------
class MyClass {};
This class is included somewhere in another header file:
Foo.h
--------
#include "MyClass.h"
class Foo {
MyClass* bar;
}
Unfortunately, this does not seem to work. I'm using Visual Studio
2005 and it provides the following error:
error C2143: syntax error : missing ';' before '*'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
Obviously, VS does not recognize the type properly, but I can't see
where the problem is.
Some more facts about the project: It's a COM DLL for MS Windows using
ATL, precompiled headers are turned on.
Any solution or help to track down the problem is welcome
Thanks,
Stefan Weber