Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: Cygwin List Message-Id: <6.2.0.14.0.20041126223719.046da0d0@pop.prospeed.net> Date: Fri, 26 Nov 2004 22:39:27 -0500 To: "Yili Zhao" , "cygwin" From: Larry Hall Subject: Re: cygwin compiles opengl app problem In-Reply-To: <200411270312.iAR3CaJL018588@mail.prospeed.net> References: <200411270312 DOT iAR3CaJL018588 AT mail DOT prospeed DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:11 PM 11/26/2004, you wrote: >Hi, > I use cygwin to compile an opengl program, and get this error: >---------------------------------------------------------------------- >/usr/include/w32api/GL/glu.h:230: error: syntax error before '*' token. >---------------------------------------------------------------------- > I opened glu.h, and find the statement in glu.h at 230 row: >GLAPI const wchar_t * APIENTRY gluErrorUnicodeStringEXT (GLenum error); > If I comment this statement, everything is ok. What's wrong with this >statement? Nothing. The problem is that Cygwin has incomplete unicode support. Undefine UNICODE in your project and things should build OK. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/