S shweta13 macrumors member Original poster Aug 7, 2008 38 0 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?
robbieduncan Moderator emeritus Jul 24, 2002 25,611 893 Harrogate Aug 12, 2008 #2 Do a search for Objective-C++
S shweta13 macrumors member Original poster Aug 7, 2008 38 0 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 Jul 24, 2002 25,611 893 Harrogate Aug 12, 2008 #4 If you want to mix Objective-C and C++ you must use Objective-C++. Please read the documentation.