A slight bit of help would be greatly appreciated...
I''m having a slight difficulty with tutorial....1 :| Yes, I am quiet new to OpenGL but when I set up a window I always get this error:
`CDS_FULLSCREEN'' undeclared (first use this function)
That''s even if I compile the straight source from the tutorial. I''m currently using Dev-C++. If anyone can help me I would GREATLY appreciate it. Thank you to all who reply.
The CDS_FULLSCREEN constant is not defined in Dev-C++ for some reason. This was fixed in one of the later NeHe basecode updates:
(straight from the header)
#ifndef CDS_FULLSCREEN // CDS_FULLSCREEN Is Not Defined By Some
#define CDS_FULLSCREEN 4 // Compilers.
#endif
Just copy this near the top of your source, and everything should work nicely.
(straight from the header)
#ifndef CDS_FULLSCREEN // CDS_FULLSCREEN Is Not Defined By Some
#define CDS_FULLSCREEN 4 // Compilers.
#endif
Just copy this near the top of your source, and everything should work nicely.
Thank you, but now I''m getting this error :-/
c:\windows\TEMP\cczcVagb.o(.text+0x38):lesson1.cpp: undefined reference to `glViewport@16''
It goes on for several errors...Anyone? Thank again
c:\windows\TEMP\cczcVagb.o(.text+0x38):lesson1.cpp: undefined reference to `glViewport@16''
It goes on for several errors...Anyone? Thank again
Sounds like you''re not including the OpenGL libraries. If so change the project setting or use pragma comments, I think they look like this but cant remember for certain. Maybe someone can confirm that for me.....
#pragma comment( lib, "opengl32.lib" );
#pragma comment( lib, "opengl32.lib" );
Yes, that is the format (make sure you do the same for GLu32.lib and GLaux.lib as well).
I don''t think that is his problem, because I think he would get more than just a few errors referring to glViewPort.
I don''t think that is his problem, because I think he would get more than just a few errors referring to glViewPort.
c:\windows\TEMP\ccP8Ucgb.o(.text+0x38):lesson1.cpp: undefined reference to `glViewport@16''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x45):lesson1.cpp: undefined reference to `glMatrixMode@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x4d):lesson1.cpp: undefined reference to `glLoadIdentity@0''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x84):lesson1.cpp: undefined reference to `gluPerspective@32''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x91):lesson1.cpp: undefined reference to `glMatrixMode@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x99):lesson1.cpp: undefined reference to `glLoadIdentity@0''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xb7):lesson1.cpp: undefined reference to `glShadeModel@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xd1):lesson1.cpp: undefined reference to `glClearColor@16''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xe0):lesson1.cpp: undefined reference to `glClearDepth@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xf0):lesson1.cpp: undefined reference to `glEnable@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x100):lesson1.cpp: undefined reference to `glDepthFunc@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x115):lesson1.cpp: undefined reference to `glHint@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x13b):lesson1.cpp: undefined reference to `glClear@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x143):lesson1.cpp: undefined reference to `glLoadIdentity@0''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x258):lesson1.cpp: undefined reference to `wglMakeCurrent@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x282):lesson1.cpp: undefined reference to `wglDeleteContext@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x854):lesson1.cpp: undefined reference to `ChoosePixelFormat@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x898):lesson1.cpp: undefined reference to `SetPixelFormat@12''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x8ce):lesson1.cpp: undefined reference to `wglCreateContext@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x914):lesson1.cpp: undefined reference to `wglMakeCurrent@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xc2f):lesson1.cpp: undefined reference to `SwapBuffers@4''
Sorry it''s so big but those are the compiler and linker output errors I''m getting. I''m really confused. Not even the basecode that I download will compile.
c:\windows\TEMP\ccP8Ucgb.o(.text+0x45):lesson1.cpp: undefined reference to `glMatrixMode@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x4d):lesson1.cpp: undefined reference to `glLoadIdentity@0''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x84):lesson1.cpp: undefined reference to `gluPerspective@32''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x91):lesson1.cpp: undefined reference to `glMatrixMode@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x99):lesson1.cpp: undefined reference to `glLoadIdentity@0''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xb7):lesson1.cpp: undefined reference to `glShadeModel@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xd1):lesson1.cpp: undefined reference to `glClearColor@16''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xe0):lesson1.cpp: undefined reference to `glClearDepth@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xf0):lesson1.cpp: undefined reference to `glEnable@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x100):lesson1.cpp: undefined reference to `glDepthFunc@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x115):lesson1.cpp: undefined reference to `glHint@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x13b):lesson1.cpp: undefined reference to `glClear@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x143):lesson1.cpp: undefined reference to `glLoadIdentity@0''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x258):lesson1.cpp: undefined reference to `wglMakeCurrent@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x282):lesson1.cpp: undefined reference to `wglDeleteContext@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x854):lesson1.cpp: undefined reference to `ChoosePixelFormat@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x898):lesson1.cpp: undefined reference to `SetPixelFormat@12''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x8ce):lesson1.cpp: undefined reference to `wglCreateContext@4''
c:\windows\TEMP\ccP8Ucgb.o(.text+0x914):lesson1.cpp: undefined reference to `wglMakeCurrent@8''
c:\windows\TEMP\ccP8Ucgb.o(.text+0xc2f):lesson1.cpp: undefined reference to `SwapBuffers@4''
Sorry it''s so big but those are the compiler and linker output errors I''m getting. I''m really confused. Not even the basecode that I download will compile.
Er... that looks like you haven''t included the header files. Or you don''t have them at all.
_______________________________________Pixelante Game Studios - Fowl Language
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement