This is the mail archive of the cygwin@sources.redhat.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]

OpenGL & Cygwin: undefined reference to glGetString()???


Hi all!

I still can't believe this. The Cygwin linker complains about undefined
references to glGetString()! All other functions/symbols are there.
Beats me... (Cygwin version is the net release from April 17th 2000)

Code:

const GLubyte *strVen = glGetString(GL_VENDOR);
const GLubyte *strRen = glGetString(GL_RENDERER);
const GLubyte *strVer = glGetString(GL_VERSION);
const GLubyte *strExt = glGetString(GL_EXTENSIONS);

Compiler/linker output:

gcc -c -o scene.o scene.c -O2 -DWIN32 -mpentium
-I//D/coding/cygwin/include -I//D/coding/cygwin/usr/local/include
gcc -o scene.exe timer/rdtsc.o scene.o earth.o materials.o lights.o
textures.o init.o draw.o -O2 -L//D/coding/cygwin/lib
-L//D/coding/cygwin/usr/local/lib -lopengl32 -lglu32 -lglut32 -lgdi32
-lwsock32 -lm
scene.o(.text+0xe5b):scene.c: undefined reference to `glGetString'
scene.o(.text+0xe68):scene.c: undefined reference to `glGetString'
scene.o(.text+0xe78):scene.c: undefined reference to `glGetString'
scene.o(.text+0xe85):scene.c: undefined reference to `glGetString'
collect2: ld returned 1 exit status
make.exe: *** [scene.exe] Error 1

I have to query for the ARB_multitexture extension... :-o

Does anyone know how to cure this? I have no idea!

Thanks for your help.

Karsten




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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