Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Irrlicht uses namespaces, a C++ feature not available in Objective-C:

In the Irrlicht Engine, everything can be found in the namespace 'irr'. So if
you want to use a class of the engine, you have to write irr:: before the name
of the class. For example to use the IrrlichtDevice write: irr::IrrlichtDevice.
To get rid of the irr:: in front of the name of every class, we tell the
compiler that we use that namespace from now on, and we will not have to write
irr:: anymore.
using namespace irr;

How can I still use Objecive-C with Irrlicht? Thanks.

share|improve this question
up vote 1 down vote accepted

There is a forum thread in which some people are trying to get the OpenGL ES branch to compile for iPhone; there are some instructions there, so you might have success with it in Objective-C.

Here is another thread which covers some Objective-C Irrlicht problems.

At this point it's probably blatantly obvious I'm just searching around to try and help you. If these didn't help I'll just delete my answer, since I am obviously not (yet) a Mac guy. :(

share|improve this answer
I don't want to write for OpenGL ES. I didn't even mention something about iPhones. Objective-C is a platform-indepenent language. Sorry. (: – rightfold Oct 27 '10 at 13:53
Sorry! I forgot, I always associate Objective-C with iPhone. Does the forum thread help? If not I can just delete my answer. – Ricket Oct 27 '10 at 13:56
Renaming to .mm helped. Thanks =D – rightfold Oct 27 '10 at 16:42
Well great! Glad I could help you then. – Ricket Oct 27 '10 at 22:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.