delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/06/07:31:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <mstrandm AT cc DOT helsinki DOT fi>
To: <cygwin AT cygwin DOT com>
Subject: OpenGL Extensions
Message-ID: <Pine.SOL.4.30.0102061429270.4780-100000@kruuna.Helsinki.FI>
MIME-Version: 1.0

>> 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

- Raw text -


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