Hello all
Apparently, C:B isnt handling preprocessor directives well (I do understand these should be the compilers fault but oh well, it works on MSVC).
Im using MS VC9 compiler, and the following code fails to compile:
#include "XEngine/GLPrerrequisites.h"
#ifdef WIN32
#include <windows.h>
#else //LINUX
#include <GL/glx.h>
#include <GL/glxext.h>
extern "C" {
extern void (*glXGetProcAddressARB(const GLubyte *procName))( void );
};
#endif
namespace XEngine
{
void* getProcAddress(const char *procname)
{
#ifdef WIN32
return (void*)wglGetProcAddress((const char*)procname);
#else //LINUX
return (void*)glXGetProcAddressARB((const GLubyte*)procname);
#endif
}
}
When I try to compile, it complains that the glx.h header cant be found. Well Im using windows, and that header's a linux header, and as you all can see in the code its not supposed to be added! Am I missing something? MSVC compiles this just fine.
Thanks in advance.