This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Cygnus & OpenGl
- To: gnu-win32 at cygnus dot com
- Subject: Re: Cygnus & OpenGl
- From: Stephane Rehel <rehel at worldnet dot fr>
- Date: Thu, 24 Jul 1997 02:56:43 +0100
- References: <33D5E328.37F9@lsi.upc.es>
DMI R. L. Solano wrote:
> I'm trying to compile a program which uses libopengl32.a and
> gcc complains:
>
> undefined reference to XXXXXX
>
> where XXXXXX is any OpenGl function.
>
> In the Makefile, I turned on the options:
>
> -lopenGl32
> -Lcygwin32/b18/..... (path to the library)
I use cygnus b18 + microsoft opengl 1.0 and 1.1 under w95 and
everything works fine.
Which OpenGL DLL do you use? You have to include windows.h
before GL/gl.h
Which GL/gl.h do you use?
No need to specify -L...:
gcc -o glwinex glwinex.C -lopengl32 -lglu32 \
-lm -lkernel32 -luser32 -lgdi32
--
-- Stephane Rehel (rehel@worldnet.fr)
-- http://home.worldnet.fr/~rehel
--
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".