From: garnerbc AT uclink2 DOT berkeley DOT edu (Garner Chung) Subject: can't figure something out in gl.h 20 Sep 1997 04:31:44 -0700 Message-ID: <3.0.3.32.19970920040629.011cfe00.cygnus.gnu-win32@uclink2.berkeley.edu> Mime-Version: 1.0 Content-Type: text/enriched; charset="us-ascii" To: gnu-win32 AT cygnus DOT com One of the main reasons for my having so many problems linking to SGI's opengl.dll was the fact that in "gl.h" there are these lines: Courier New#if !defined(WIN32) #define WINGDIAPI #define APIENTRY #endif /* defined(WIN32) */ Basically, they don't work. So APIENTRY gets redefined to nothing (from STDCALL). Therefore gcc would constantly spit out an object file that would tell the ld to try and link to a glFunction without the "@NN"s. I therefore idiotically assumed that all glFunctions were not STDCALL's(without even looking at the gl header file). I am kind of unversed in programming in general. I guess I am wondering why these lines don't work properly. Meaning that: WINGDIAPI and APIETNRY should not get redefined to nothing on my machine. Where would "WIN32" get defined? garner - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".