THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/10/2006 at 04:29, xxxxxxxx wrote:
Cinema 4D Version: 9.6
Platform: Windows ;
Language(s) : C++ ;
MSVC natively comes with OGL and when I try to include glut.h and use a GL funciton in my code, VC++ gives me a compiler error as a typedef in gl.h collides with the c4d api "pi" definition.
typedef void (APIENTRY * PFNGLARRAYELEMENTARRAYEXTPROC)(GLenum mode, GLsizei count, const GLvoid* pi);
Any idea how to solve this problem?
On 02/11/2006 at 02:07, xxxxxxxx wrote:
Try to include the "gl.h" before the Cinema includes.
On 02/11/2006 at 05:23, xxxxxxxx wrote:
Cool that seems to work!! Great thank you Matthias
On 02/11/2006 at 05:56, xxxxxxxx wrote:
Ok, it doesn´t work. It works for compiling but not for the final built. I still get the same error. Any other idea?
On 08/11/2006 at 13:26, xxxxxxxx wrote:
I guess you could disable the C4D pi definition, unless you use it yourself.
On 08/11/2006 at 15:46, xxxxxxxx wrote:
That would be safe? Cool. I´ll give that a try. I can define it differently in my namespace. Thanks