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.


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. :(

  • \$\begingroup\$ 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. (: \$\endgroup\$ – rightfold Oct 27 '10 at 13:53
  • \$\begingroup\$ Sorry! I forgot, I always associate Objective-C with iPhone. Does the forum thread help? If not I can just delete my answer. \$\endgroup\$ – Ricket Oct 27 '10 at 13:56
  • 1
    \$\begingroup\$ Well great! Glad I could help you then. \$\endgroup\$ – Ricket Oct 27 '10 at 22:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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