delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/09/08:44:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.2.0.9.0.20040409083247.08446fd8@irispavp.igb.umontreal.ca>
X-Sender: bleau3 AT irispavp DOT igb DOT umontreal DOT ca (Unverified)
Date: Fri, 09 Apr 2004 08:44:31 -0400
To: cygwin AT cygwin DOT com
From: Andre Bleau <bleau AT igb DOT umontreal DOT ca>
Subject: Re: broken built of cygwin compiled OpenGL/Mesa application
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i39CitT3016748

Theo Verelst wrote:
>Readers,
>
>Maybe I'm facing a known problem, but I at a glance saw no posts or 
>README's about this subject of OpenGL includes suddenly generating
>errors after a relatively recent cygwin upgrade.

Well, if you looked for posts, you didn't look very thoroughly, because you 
would have found that it is a known problem:

http://sources.redhat.com/ml/cygwin/2004-02/msg00990.html

and follow-ups.

>Did the bindings or
>the include file names change, or should I add some new switch #define ?
>
>Below's the short error output.
>
>Tia
>
>Theo
>
>
>------------------------------------------------------------------------------
>
>
>  /home/Theo/Pmspick2 [515] $ make
>  gcc -c  -DWIN32 -D__WIN32__ -D_WINDOW pick.c
>  In file included from /usr/include/GL/glut.h:132,
>                   from pick.c:58:
>  /usr/include/w32api/GL/glu.h:230: error: syntax error before '*' token
>  make: *** [pick.o] Error 1
>  /home/Theo/Pmspick2 [516] $

As a work around, you could add to your compile line:

"-Dwchar_t=unsigned short"
don't forget the double quotes.

and:

>I just figured out with diff that there's probably just one line in error, 
>which I commented out, and there some stuff removed.
>
>It compiled again, but I still wonder how it all is with glu.h !
>
>Theo.

For the record, this is caused by a bug in glu.h, which is now part of the 
w32api package, not the OpenGL package. It seems that the bug was fixed in 
Mingw's CVS, but a new w32api package including that fix has not been 
released yet.

You could also try to downgrade the w32api package to the previous version 
using setup.



André Bleau, Cygwin's OpenGL package maintainer.

Please address all questions and problem reports about Cygwin's OpenGL 
package to cygwin at cygwin dot com . 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019