CDS_FULLSCREEN
Yes, I'm stuck on the first tutorial! My Dev C++ 4 says that CDS_FULLSCREEN is an undeclared identifier. It has no trouble with the header files, so I would have thought it was some spelling error. But I checked the tutorial code and the Borland code, and the spelling is the same. Any solution? This is very frustrating . . .
it's not in the headers for some reason. but IIRC, use this..
#ifndef CDS_FULLSCREEN#define CDS_FULLSCREEN 4#endif
Thanks! Now it compiles, but the Compiler and Linker Output window raves on about undefined references to glShadeModel@4 and the like.
I'm obviously out of my depth here. Is there any textbooks for beginners in Dev C++?
I'm obviously out of my depth here. Is there any textbooks for beginners in Dev C++?
Quote:Original post by Anonymous Poster
You need to add the opengl link libraries.
Thanks . . . You mean add them to my project, or add them to Dev C++? I tried to sort all this out a while ago with the Borland C++ compiler, but it was quite beyond me then.
i haven't used dev-c++ in a long time, but in the linker options(somewhere) you have to link the proper libraries, such as opengl32.lib glu32.lib...
edit:
Dev-C++ FAQ
edit:
Dev-C++ FAQ
Quote:
9. How can i use the OpenGL library and others ?
All the libraries that comes with Mingw reside in the Lib directory. They are all named in the following way: lib*.a
To link a library with your project, just add in Project options, Further option files :
-lopengl32
This is for including the libopengl32.a library. To add any other library, just follow the same syntax:
Type -l (L in lowercase) plus the base name of the library (filename without "lib" and the ".a" extension).
For some reason the project menu is greyed out, and the project options button doesn't do anything. Am I missing something?
Quote:Original post by PinguinDude
You need gdi32.a linked to your project.
This was the file I was missing. It runs fine now, thanks. For some reason if I open the project from NeHe I can't open the Project menus. I can cut and paste it into a new project though. Wierd . . . oh well, I guess I'll figure that one out one day.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement