On 16/09/2010 12:23, Ozkan Sezer wrote: > On Thu, Sep 16, 2010 at 1:02 PM, G E Naganna<[email protected]> wrote: >> Hi all, >> >> I am not able to generate GLEW libraries from MinGW-w64. I did >> not find Makefile.mingw64 in config folder so I compiled by using Msys. I >> am getting following error. >> >> gcc -O2 -Wall -W -Iinclude -DGLEW_BUILD -o src/glew.o -c src/glew.c In >> file included from src/glew.c:32: >> >> include/GL/glew.h:154: error: expected '=', ',', ';', 'asm' or >> '__attribute__' before 'ptrdiff_t' >> >> In file included from src/glew.c:32: >> >> include/GL/glew.h:1637: error: expected '=', ',', ';', 'asm' or >> '__attribute__' before 'GLsizeiptr' >> >> -----8<--8<----8<--8<----8<--8<----8<--8<----8<--8<----
>> src/glew.c:5062: error: expected ')' before 'wglGetProcAddress' >> >> make: *** [src/glew.o] Error 1 >> >> >> Steps followed to compile GLEW code >> >> 1. Downloaded glew-1.5.6-win32.zip from >> https://sourceforge.net/projects/glew/ >> >> 2. Open command window (start -> Run and type cmd.exe ) 3. Add MinGW bins >> to PATH like as follows >> >> set PATH=C:\MinGW64\bin;C:\MinGW\msys\1.0\bin;%PATH% >> >> 4. Move to GLEW source code >> >> 5. Make >> >> >> Could anybody please help me to fix the problem? I am on XP64, SP1. >> >> >> >> Thanks and Regards >> >> G E Naganna >> > That glew.h header is trying to do all things by itself. AFAICS, the heart of > the problem lies in the definition of ptrdiff_t type at line 154 where it uses > __int64 but without including any headers defining __int64 for mingw case. > At line 154, replace "__int64" by "long long" and see how things go. that worked for me, thanks. -- mescalinum ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
