This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: glTexImage3D missing?
- From: Brian Ford <Brian dot Ford at FlightSafety dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 30 Aug 2006 11:53:38 -0500
- Subject: Re: glTexImage3D missing?
- References: <44F59916.7020107@ege.cc>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
On Wed, 30 Aug 2006, Bernhard Ege wrote:
> I am trying to compile an opengl program and have managed to get all but
> 1 error to disappear:
>
> gcc -o 3dtexture 3dtexture.c -lglut32 -lglu32 -lopengl32
> /cygdrive/c/DOCUME~1/bme/LOCALS~1/Temp/ccAhs05G.o:3dtexture.c:(.text+0xa7b):
> undefined reference to `_glTexImage3D@40'
> collect2: ld returned 1 exit status
> make: *** [3dtexture] Error 1
>
> I have been unable to resolve this error. I did find _glTexImage3D in
> /usr/X11R6/lib/libGL.dll.a but I have been unable to take advantage of it.
>
> Am I missing something obvious? ;-)
Several things. You linked with -lglut32 -lglu32 -lopengl32 which are
Windows native libraries, but posted to the cygwin-xfree mailing list. As
such, you're off topic ;-). cygwin is the place to discuss these
libraries.
/usr/X11R6/lib/libGL.dll.a is the OpenGL for X11 and would be linked as
-L/usr/X11R6/lib -lGLU -lGL (I think that freeglut is now available for
X11 in Cygwin, but I have never used it).
Microsoft's OpenGL is version 1.1. glTexImage3D is not a version 1.1
feature. You need to learn how to load extensions and look at
EXT_texture3d and glTexImage3DEXT.
--
Brian Ford
Lead Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...
.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/