This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cygnus & OpenGl


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]