Hi all,
I have the book “OpenGL Superbible” and I can’t compile any example in Dev-C++.
I have compiled other examples that are not of that book, the programs use:
#include “glos.h”
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glaux.h>
I put “-lopengl32 -lglaux -lglu32” in linker options and I have no problem to compile it.
But SuperBible’s examples use (for expample):
#include “Common/OpenGLSB.h” // System and OpenGL Stuff
#include “Common/GLTools.h” // OpenGL toolkit
And I cant compile it.
I have put all the files in the Dev-C++ Directories, and the entire “Common” directory that have the Superbible’s GLTools, but I cant make it runs.
It gave me errors like this:
4152 c:\dev-c_~1\include\common\glext.h
redefinition of `PFNGLCOLORSUBTABLEEXTPROC’
1493 c:\dev-c_~1\include\gl\gl.h
`PFNGLCOLORSUBTABLEEXTPROC’ previously declared here
503 c:\dev-c_~1\include\common\wglext.h
parse error before `INT32’
504 c:\dev-c_~1\include\common\wglext.h
warning: `stdcall’ attribute directive ignored
504 c:\dev-c_~1\include\common\wglext.h
parse error before `INT64’
504 c:\dev-c_~1\include\common\wglext.h
`INT64’ declared as function returning a function
505 c:\dev-c_~1\include\common\wglext.h
`PFNWGLSWAPLAYERBUFFERSMSCOMLPROC’ declared as function returning a function
6 block.c
C:\DEV-C_~1\Include\Common\glext.h:415P
should i have to change linker options???
Some one help me please,
and sorry for my english, im spanish.
Thanks.