|
From: Karthik K. <akk...@ya...> - 2004-10-03 22:54:19
|
Hi,
For my OpenGL application, I want to link dynamically against
opengl32.dll , provided by my vendor instead of libopengl32.a ,
as part of the OpenGL SDK.
My test program - opengltest.c
#include <stdlib.h>
#include <GL/gl.h>
int main() {
GLint maxlights;
glGetIntegerv(GL_MAX_LIGHTS, &maxlights);
return EXIT_SUCCESS;
}
I am getting the following errors:
gcc.exe Debug/openltest.o -o "Debug\dlltest.exe"
-L"C:/Programs/Dev-Cpp/lib" -mwindows
C:/WINDOWS/system32/opengl32.dll
Debug/openltest.o(.text+0x39):openltest.c: undefined reference to
`glGetIntegerv@8'
collect2: ld returned 1 exit status
I am using gcc - 3.4.2
C:\>ld --version
GNU ld version 2.15.91 20040904
w32api - 3.1
opengl32.dll location is indeed correct. I am using Win XP.
Can anyone help me how to dynamically link my OpenGL applications
with the dll provided by my vendor.
--
Karthik.
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
|