Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Authentication-Warning: kruuna.Helsinki.FI: mstrandm owned process doing -bs Date: Tue, 6 Feb 2001 14:30:04 +0200 (EET) From: Markku Strandman To: Subject: OpenGL Extensions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII >> My card supports EXT_compiled_vertex_arrays. I tried to follow a GL >> extension manual >> (http://reality.sgi.com/blythe/sig99/advanced99/notes/node396.html), but >> it didn't work. What to do? > One problem with the suggested code might be that it is written for Visual > C++, which has _WIN32 defined. The last version of gcc for Cygwin > (2.92.2-7) has _WIN32 undefined by default; try compiling with -mwin32. If > you still encounter problems, please report to this list the complete error > messages you receive, instead of just saying "it didn't work". _WIN32 was not the problem. Here is some code and the error messages: --lines 53-57 ------------ typedef void (APIENTRY * PROCGLLOCKARRAYSEXT) (GLint first, GLsizei count); typedef void (APIENTRY * PROCGLUNLOCKARRAYSEXT) (void); PROCGLLOCKARRAYSEXT glLockArraysEXT; PROCGLUNLOCKARRAYSEXT glUnlockArraysEXT; -------------------------- --errors------------------ wgl.c:56: `glLockArraysEXT' redeclared as different kind of symbol /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/../../../../include/GL/gl.h:1799: previ ous declaration of `glLockArraysEXT' wgl.c:57: `glUnlockArraysEXT' redeclared as different kind of symbol /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/../../../../include/GL/gl.h:1989: previ ous declaration of `glUnlockArraysEXT' -------------------------- I managed to work around the problem by naming the function pointers different from original functions, but I'm still looking for a tidier way to do this. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple