This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: No extern "C" for XFree86 OpenGL headers
- From: Harold L Hunt II <huntharo at msu dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 06 Nov 2003 00:24:40 -0500
- Subject: Re: No extern "C" for XFree86 OpenGL headers
- References: <3FA9B53D.5030207@verizon.net>
- Reply-to: cygwin-xfree at cygwin dot com
This is out of the blue. Could you give a little more context to what
you are trying to do?
Harold
Tron Thomas wrote:
The XFree86 versions of the OpenGL headers files do not use extern "C"
when compiling C++ modules. This can result in linking errors as OpenGL
function receive decorated signatures that won't exist in the libraries.
A work around is for a developer to do something like the following in a
C++ code module:
#ifdef __cplusplus
extern "C" {
#include <GL/gl.h>
}
#endif
which shouldn't normally be necessary as other implementations of OpenGL
do not require this.