C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-27-2003, 10:48 AM   #1
Linux Forever
 
Join Date: Oct 2002
Posts: 373
OPENGL Dev C++; Fualty LIBS

I got almost every tutorial on Ogl on Dev CPP, and i get these erors:


1135-1164: systax errors before void and ( (gl.h)

and CDS_FULLSCREEN undeclared.

Can i get 2 things:
1: A tutor guy to help me learn OpenGL in Dev C++ (i made 2 games in SDL, but i want to do 3D in pure OGL.)
and 2: a working OGL library

Thanks in advance!
__________________
This war, like the next war, is a war to end war.
Blizzarddog is offline   Reply With Quote
Old 12-27-2003, 11:28 AM   #2
Banned
 
frenchfry164's Avatar
 
Join Date: Oct 2001
Posts: 1,552
Show us some code.
frenchfry164 is offline   Reply With Quote
Old 12-28-2003, 09:33 AM   #3
Linux Forever
 
Join Date: Oct 2002
Posts: 373
You can get the code from www.gametutorials.com under OpenGL, and other code from nehes OGL tutorials. Nehes gets the CDS_FULLSCREEN Undeclared, and GT gets the syntax errors.
__________________
This war, like the next war, is a war to end war.
Blizzarddog is offline   Reply With Quote
Old 12-28-2003, 09:55 AM   #4
C++ Developer
 
XSquared's Avatar
 
Join Date: Jun 2002
Location: UWaterloo
Posts: 2,718
For the NeHe tutorials, just put this at the top of your code.
Code:
#ifndef CDS_FULLSCREEN
#define CDS_FULLSCREEN 4
#endif
And the reason that the GameTutorials.com ones aren't working is that all of them are written to be compiled in the .NET environment.
__________________
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Last edited by XSquared; 12-28-2003 at 09:58 AM.
XSquared is offline   Reply With Quote
Old 01-01-2004, 10:13 AM   #5
Linux Forever
 
Join Date: Oct 2002
Posts: 373
Thanks, ill try it out when i log back into windows and not linux.
__________________
This war, like the next war, is a war to end war.
Blizzarddog is offline   Reply With Quote
Old 01-02-2004, 09:40 AM   #6
Registered User
 
Join Date: Oct 2003
Posts: 83
Quote:
Originally posted by XSquared
For the NeHe tutorials, just put this at the top of your code.
Code:
#ifndef CDS_FULLSCREEN
#define CDS_FULLSCREEN 4
#endif
And the reason that the GameTutorials.com ones aren't working is that all of them are written to be compiled in the .NET environment.
Yeah, he hit the spot. I had the same problem earlier and thats the way to fix it! Just an undefined marco
punkrockguy318 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenGL Window Morgul Game Programming 1 05-15-2005 12:34 PM
openGL programming - From MSVC++ to Dev C++ WDT Game Programming 3 03-08-2004 08:47 PM
openGL programming - From MSVC++ to Dev C++ WDT Game Programming 1 03-08-2004 05:19 PM
OpenGL .dll vs video card dll Silvercord Game Programming 14 02-12-2003 07:57 PM
Using OpenGL with Dev C++ Patrdm83 C++ Programming 4 02-04-2003 05:57 PM


All times are GMT -6. The time now is 12:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22