compiling problem,
hi,
I was using visual C++ to compile my openGL programs and it was working just fine for several weeks. but after i reinstall the software it begins to generate many errors when compiling for the programs which do not have any error at all. it claims all openGL comands as an error. and also it says there is a linking problem. what is the openGL link to visual C++ . the question seems silly but it has been driving me nuts.
thanks in advance
redgir
the opengl headers are PART of the visual C++ include heirarchy ... so if you screw up visual C++ includes, opengl goes with them ...
the opengl libraries are also in there (i think), but the actual dlls are in the windows directory (or subdirectory) as opengl32.dll and glu32.dll I believe.
the opengl libraries are also in there (i think), but the actual dlls are in the windows directory (or subdirectory) as opengl32.dll and glu32.dll I believe.
As you (Xai) have said i have checked the dll files of the opengl (opengl32.dll and glu32.dll) and they are found where they should be. and i think i didnt screw up any liebrary of the vc++.
but now i remember that when i first begin learning openGL a friend have written something in the "link" tab (project>settings>link) which could some how help opengl to link. but i cant remember what he wrote.
if any one knows what should be written there please let me know. thanx again!
but now i remember that when i first begin learning openGL a friend have written something in the "link" tab (project>settings>link) which could some how help opengl to link. but i cant remember what he wrote.
if any one knows what should be written there please let me know. thanx again!
redgir
March 29, 2003 12:25 PM
Wow, good programming style.
Let''s rephrase:
I had to do something way back when to make this work. I didn''t write it down.
In fact I don''t even have a notebook of tips and tricks and other crap I''ve found out the hard-way.
Hopefully I''ll learn more than just the answer this time.
And now for the answer..........from TUTORIAL NUMBER ONE!!!!
"After you have created a new Win32 Application (NOT a console application) in Visual C++, you will need to link the OpenGL libraries. In Visual C++ go to Project, Settings, and then click on the LINK tab. Under "Object/Library Modules" at the beginning of the line (before kernel32.lib) add OpenGL32.lib GLu32.lib and GLaux.lib. Once you''ve done this click on OK. You''re now ready to write an OpenGL Windows program.
The first 4 lines include the header files for each library we are using. The lines look like this:"
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The GLaux Library
Let''s rephrase:
I had to do something way back when to make this work. I didn''t write it down.
In fact I don''t even have a notebook of tips and tricks and other crap I''ve found out the hard-way.
Hopefully I''ll learn more than just the answer this time.
And now for the answer..........from TUTORIAL NUMBER ONE!!!!
"After you have created a new Win32 Application (NOT a console application) in Visual C++, you will need to link the OpenGL libraries. In Visual C++ go to Project, Settings, and then click on the LINK tab. Under "Object/Library Modules" at the beginning of the line (before kernel32.lib) add OpenGL32.lib GLu32.lib and GLaux.lib. Once you''ve done this click on OK. You''re now ready to write an OpenGL Windows program.
The first 4 lines include the header files for each library we are using. The lines look like this:"
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The GLaux Library
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement