Hello,
Im quite new to using GL. I have managed to develop some simple applications in Borland Builder C++ 6, but i need to move forward to using some buffering functionality not supported in openGL 1.1 (i need at least to use OpenGL 2.1). I tried using GLEW with BB6, trying the simplest way:
Moving:
glew32.dll to %SystemRoot%/system32
glew32.lib to {BCB6 Root}/Lib
glew.h to {BCB6 Root}/Include/GL
wglew.h to {BCB6 Root}/Include/GL
Then, i include in my program:
#include <GL\glew.h>
and get the following error when trying to compile:
[C++ Error] glew.h(156): E2238 Multiple declaration for ‘ptrdiff_t’
The error is in this sector of glew.h:
(…)
#if !defined(_PTRDIFF_T_DEFINED) && !defined(PTRDIFF_T)
ifdef _WIN64
typedef __int64 ptrdiff_t;
else
typedef _W64 int ptrdiff_t; <-THIS IS THE LINE WITH THE ERROR
endif
define _PTRDIFF_T_DEFINED
define PTRDIFF_T
#endif
(…)
Does anyone know if BCB6 supports Glew, or if there is any way of doing so? I searched the forum but couldn´t find anything related to GLEE in BCB6 forms applications.
Thanks in advance