Thread: OPENGL Dev C++; Fualty LIBS

  1. #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.

  2. #2
    Show us some code.

  3. #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.

  4. #4
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    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.
    Last edited by XSquared; 12-28-2003 at 09:58 AM.
    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

  5. #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.

  6. #6
    Registered User
    Join Date
    Oct 2003
    Posts
    83
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

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