Unknown type name 'class'; did you mean 'Class'?

I have a C++ class declaration in FTracker.h file.

classFTracker// 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 6.0.1 (6A317), LLVM compiler 6.0,...

Anyone give ma a suggestion..

iPad, iOS 7.1.2

Posted on Nov 20, 2014 8:49 AM

Reply
3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unknown type name 'class'; did you mean 'Class'?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.