Unknown type name 'class' when include C++ code in Cocoa/Objective-C project

So, basically this it (I think I have solved it in the past somehow, but I canNOT remember HOW...) :

  • I've got a - pretty much empty - Objective-C/Cocoa project
  • Import some .c/.cpp files
  • Get the following error

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

Any ideas on how to resolve this?


Just renamed my .cpp files to .mm. :-)

That did the trick!

Need Your Help

Android - executing different functions with multiple threads

java android multithreading service timer

I am pretty new to Android programming but got some experience in other languages. I want to create an APP which is principle working like this.

No architectures to compile for core plot iphone

iphone compilation core-plot

I'm trying out a core plot iphone example and I get:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.