Unknown type name GLEW

I'm trying to skip the glew "link step" by adding the source file to my project to make the code more flexible (target 32 ​​and 64 bit with minor changes). I have already achieved 32 bit compilation with :: Blocks and mingw 32 bit code. Now I am stuck trying to compile my code to 64 bit! (mingw 64 bit with code :: blocks). I cannot get rid of this error:

in glew.c: error: unknown type name for 'hPFNGLQUERYOBJECTPARAMETERUIAMDPROC' error: conflicting types for '__glewQueryObjectParameteruiAMD'

As in line 636 glew.c. The same code compiled successfully without any modification with a 32 bit compiler (hard not the same PC). I am using the header glew.h (and others) that comes with the original file.

+3


source to share


1 answer


You have an additional one h

at the beginning hPFNGLQUERYOBJECTPARAMETERUIAMDPROC

, it must be PFNGLQUERYOBJECTPARAMETERUIAMDPROC

without a leader h

.



-1


source







All Articles