Advertisement

Freaking Problem with OpenGL32.dll !!!

Started by February 14, 2002 09:08 AM
4 comments, last by ZGL_Sigma 23 years ago
hello there - my question is simple and might be simple to answer. (I guess it''s one of those questions I byte my back when I hear the answer) My rogram is always asking for OpenGL.dll - but I''m linking OpenGL32.lib - so what the f*** is going on ??? someone help me ?
I hate signatures !!!

The opengl32.lib that you link your application with is just
the import library for opengl32.dll. You STILL need the
opengl32.dll to run your program.

For more information, consult the MSDN under the topic of
"Dynamic Link Library (DLL)".


Premature optimizations can only slow down your project even more.
神はサイコロを振らない!
Advertisement
well I think you misunderstood my question :

I read that OpenGL.dll is only packed with rare drivers and is not reconmended to be used. and I even only have OpenGL32.dll.

so I renamed Opengl.lib to OpenGl32.lib - but still when I include OpenGL32.lib he asks for OpenGl.dll.

so where''s the problem ???
I hate signatures !!!

First, I have NO IDEA what this "OpenGL.dll" is about or
where it came from. It''s definitely not standard.
The standard DLL name is "opengl32.dll" on Win32 and
it comes with an import library "opengl32.lib".

Second, renaming the import library DOES NOT change the
dependencies on the DLL. If the import library is for
"OpenGL.dll", renaming "OpenGL.lib" to "OpenGL32.lib" will
NOT make your program use "opengl32.dll". You will still
need "OpenGL.dll".

I suggest you learn more about DLL''s from MSDN or other
sources.


Premature optimizations can only slow down your project even more.
神はサイコロを振らない!
Ok the simple answer to your simple question is we dont f***ing know!!! *g*

Listen m8 it''s this simple. Undo all your renaming and all that, recompile your project linking to opengl32.lib and *bang* your program should work I have to admit I''ve never heard about this choice piece of info you''ve brought to light, have to check that out

BTW, if you dont actually -have- opengl32.lib, then you need the OpenGL SDK. I recommend downloading NVIDIA''s SDK, if memory serves (Which it often doesn''t btw ) then the files you need should be contained in there

Hope that helps m8!



-------- E y e .Scream Software --------
----------------------------------------
                                  /-\
    http://www.eyescream.cjb.net | * |
                                  \-/
----------------------------------------
Renaming opengl.lib to opengl32.lib does NOT solve the problem.
In fact, the name of the DLL is known by the LIB, it is stored into a string in that LIB. The name of the DLL is NOT a simple replacement of the file extension "LIB" by "DLL".
If you rename opengl.lib to directx255.lib, it will still link to opengl.dll

This topic is closed to new replies.

Advertisement