markowitch
12-22-2003, 04:12 AM
Hi NG.
I am a newbie on the window platform. I have some OpenGL programs that i want to compile under win2k.
I am using mingw and the Dev C++ IDE. I have succesfully compiled and linked some small toy programs by using -lglut32 -lglu32 -lopengl32.
I now have a problem with a somewhat more advanced piece of code that uses som nvidia extensions. The problem is that i get unresolved references.
I have tried to link with the nvoglnt.dll by using -lnvoglnt but that does not seem to do the trick. Right now my line of thougt is that i should try to use the impdef.exe tool on nvoglnt.dll to get a .def file so that i later can make a .a file by using dlltool.exe.
Somehow, this seems complicated and i have a feeling that this might not be the correct approach. Should linking by
-lglut32 -lglu32 -lopengl32.
work even when using vendor extensions? And if yes, how does it work? I mean the vendor information must surely be hidden in i.e. nvoglnt.dll for nvidia supplied extensions.
Hope to get some comments or links
Cheers
Mark
I am a newbie on the window platform. I have some OpenGL programs that i want to compile under win2k.
I am using mingw and the Dev C++ IDE. I have succesfully compiled and linked some small toy programs by using -lglut32 -lglu32 -lopengl32.
I now have a problem with a somewhat more advanced piece of code that uses som nvidia extensions. The problem is that i get unresolved references.
I have tried to link with the nvoglnt.dll by using -lnvoglnt but that does not seem to do the trick. Right now my line of thougt is that i should try to use the impdef.exe tool on nvoglnt.dll to get a .def file so that i later can make a .a file by using dlltool.exe.
Somehow, this seems complicated and i have a feeling that this might not be the correct approach. Should linking by
-lglut32 -lglu32 -lopengl32.
work even when using vendor extensions? And if yes, how does it work? I mean the vendor information must surely be hidden in i.e. nvoglnt.dll for nvidia supplied extensions.
Hope to get some comments or links
Cheers
Mark