S shweta13 macrumors member Original poster Aug 12, 2008 #1 Hi all, I am porting an application written in cpp to object C. Can i directly use cpp files in my application without porting them to object C? If so how can I do it?
Hi all, I am porting an application written in cpp to object C. Can i directly use cpp files in my application without porting them to object C? If so how can I do it?
S shweta13 macrumors member Original poster Aug 12, 2008 #3 robbieduncan said: Do a search for Objective-C++ Click to expand... Actually I do not want to use Objective C++, I want to make my application in Object C. I heard that C++ files can be used with .M extn?? Also if I have to include some classes of Cpp in Object C , how do I do it? Thanks in advance.
robbieduncan said: Do a search for Objective-C++ Click to expand... Actually I do not want to use Objective C++, I want to make my application in Object C. I heard that C++ files can be used with .M extn?? Also if I have to include some classes of Cpp in Object C , how do I do it? Thanks in advance.
robbieduncan Moderator emeritus Aug 12, 2008 #4 If you want to mix Objective-C and C++ you must use Objective-C++. Please read the documentation.