Using standard CPP for iphone development

Forum for Objective-C iPhone games and OpenGL related topics including programming doubts, books and other resources for iPhone game development

Using standard CPP for iphone development

Postby DevelopmentTeam » Tue Oct 07, 2008 10:43 am

For people who have been into development using Java, it should be little hard to learn Objective-C. But Apple has done a nice job allowing programmers to write Standard Cpp within their obj-c. Here is the list of things you have to ensure to avoid compilation problem.

1) Change all .m files to .mm which means you are writing Obj-c++ classes.
2) Write all your classes in cpp and .h as usually
3) You can now happily use your cpp classes in your .mm files.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Return to iPhone OpenGL ES 3D Game Development Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron