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.
source to share