delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/23/19:04:38

From: rehel AT worldnet DOT fr (Stephane Rehel)
Subject: Re: Cygnus & OpenGl
23 Jul 1997 19:04:38 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33D6B65B.5D27E9B1.cygnus.gnu-win32@worldnet.fr>
References: <33D5E328 DOT 37F9 AT lsi DOT upc DOT es>
Mime-Version: 1.0
X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.1.16 i586)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 AT worldnet DOT fr)
-- http://home.worldnet.fr/~rehel
--

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

- Raw text -


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