Donate Share

The OpenGL Extension Wrangler Library

Tracker: Bugs

5 glew.c compilation on CYGWIN - ID: 1839667
Last Update: Comment added ( sf-robot )

Hi,

I am building glew.c within my own build system. For some reason, WINAPI
does not get defined on CYGWIN, since the inclusion of windows.h is disable
in wglew.h. My command line is:

cc -I.././build/CYGWIN_NT_5_1/include -DWIN32 -D_WIN32 -DCYGWIN_NT_5_1
-DWGL -DEQ_CHECK_THREADSAFETY -DEQ_USE_COMPRESSION -DGLEW_MX -DNDEBUG
-DWIN32 -D_WIN32 -DWIN32 -D_WIN32 -DSUBDIR=\"./lib\" -MMD -MF
.././obj/./lib/glew/glew.CYGWIN_NT_5_1.i686.o.d -c glew/glew.c -o
.././obj/./lib/glew/glew.CYGWIN_NT_5_1.i686.o

In file included from glew/glew.c:34:
.././build/CYGWIN_NT_5_1/include/GL/wglew.h:89: error: parse error before
'*' token
.././build/CYGWIN_NT_5_1/include/GL/wglew.h:89: error: parse error before
"hDC"
.././build/CYGWIN_NT_5_1/include/GL/wglew.h:89: error: `BOOL' declared as
function returning a function
...


Environment is Cygwin, GLEW 1.4.0.


Any ideas what's going wrong?


Cheers,

Stefan.


Stefan Eilemann ( eile ) - 2007-11-27 18:09

5

Closed

Invalid

Nobody/Anonymous

WGL specific

None

Public


Comments ( 2 )




Date: 2008-11-10 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2008-10-27 01:56
Sender: ikitsProject AdminAccepting Donations

Hi,

You cannot include wglew.h in a Cygwin application, because it is a Unix
application by default. You need to include glxew.h instead and run the
application under Cygwin's X server.

If you want to build a Windows application using Cygwin's gcc, I recommend
using the -mno-cygwin option, which builds your program as a MinGW
application. To build GLEW for MinGW using Cygwin's gcc, type:

make SYSTEM=cygming

See also http://www.delorie.com/howto/cygwin/mno-cygwin-howto.html

I hope this helps,

- Milan





Log in to comment.

Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Pending 2008-11-10 02:20 sf-robot
close_date 2008-10-27 01:56 2008-11-10 02:20 sf-robot
status_id Open 2008-10-27 01:56 ikits
resolution_id None 2008-10-27 01:56 ikits
close_date - 2008-10-27 01:56 ikits