Cygnus & OpenGl
Stephane Rehel
rehel@worldnet.fr
Wed Jul 23 18:07:00 GMT 1997
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".
More information about the Cygwin
mailing list