This is driving me crazy.
I have a C++ class declaration in foo.h file.
class foo // error marks are here
{
};
When I #include/#import
this header in my fooUser.mm file, it compiles. When I do #include/#import
it in my fooUser.h file it doesn't, and the compiler errors are.
Unknown type name 'class'; did you mean 'Class'?
Excpected ';' after top level declarator.
I'm using XCode 4.2, LLVM compiler 3.0,... should this be important.