Firstly, a big thanks for this great library that Groovounet has written.
Im trying to write a simple 3d engine for the iPhone and would like to make use of glm internally. I am using C++ but still need to use Cocoa Touch for the initialisation code which is contained in .mm files. I am not using glm from Objective C code.
The problem is that these mm files include certain C++ classes header files which include glm. glm has certain defines which are reserved keywords in the Objective C language, and since therefore cannot compile.
Example
GLView.mm
==============
#include "Renderer.h" //This is a C++ file
Renderer.h
==============
#include <glm/glm.hpp>
GLView.mm won't compile because it will indirectly include glm and the compiler will give errors on encountering certain Objective C keywords in the glm header.
Is there a way to notify the XCode compiler that a particular include in a .mm file is to be treated as C++ code? Something like
#define COMPILE_AS_CPLUS
#include <glm/glm.hpp>
#undef COMPILE_AS_CPLUS




