Is there a way to include objective-header with CPP? Because when I try to include "cocos2d.h" from the #cpp.h file, many errors are being complained about @ and-.
Can c ++ files be obj-c headers?
It is possible, but you can use the Object-C ++ file (such as file extensions .mm ), plain C ++ sources do not work.
To clarify this:
-
.mfiles only allow objective-sources - < Code> .cpp files only allow C ++ sources
-
.mmmixed purpose- C ++ sources - i.e. objective with some limitations Allow C ++ both
If you need to keep two worlds apart instead, then you need to type the wrapper class which hides the objective-c Land Description C ++ and vice versa.
Comments
Post a Comment