Hello. I study With ++ using CodeBlocks + MinGW . Reading the favorite book on C + + got to work with OpenGL.
The connection of the necessary libraries to the CodeBlocks linker is made in the following place:
Settings / Compiller_compiler_and_debugger / Global_compiler_settings / Linker_settings
Once connected, the Link libraries list looks like this:
C:\MinGW\lib\libopengl32.a C:\MinGW\lib\libglu32.a C:\MinGW\lib\libglaux.a
After specifying the libraries, the compiler stopped swearing and ran the code. But after opening the console window, an error occurs:
"The entry point to the auxInitWindowA procedure was not found in the DLL GLAUX.DLL"
I look at the example code, yes there is such auxInitWindow () function, I look through some plugin in TotalCommander'e on the inside of the glaux.dll file, and there is no auxInitWindow entry , for example, auxInitDisplayMode, but specifically auxInitWindow is not. I downloaded a bunch of glaux.dll files, funny of course, but I was convinced that they don’t have this function either. Although reviewing the contents of glaux.lib found _auxInitWindowA @ 4 there. So it's a matter of glaux.dll or I don't understand something?
Digging in the internet did not see any such problems anymore. And the window initialization command for all is performed without problems. Please help me deal with this problem.
I can not run even the simplest code:
#include "afxwin.h" #include "GL/gl.h" #include "GL/glu.h" #include "GL/glaux.h" int main(int argc, char** argv) { auxInitDisplayMode(AUX_RGB); auxInitPosition (0, 0, 500, 500); auxInitWindow ("Step1"); <---------- Осечка return 0; }
-lglaux
- alexlz