Thread: Problem with the example

  1. #1
    Registered User
    Join Date
    Jul 2010

    Problem with the example

    I use CodeBlocks and i have a problem first one was that it could not find
    #include "stdafx.h" which i solved with removing it and then tweaking arund the settings too get the code too work
    But now i hit yet another cant find #include <gl/glux.h>
    Example shown here: Your First OpenGL Program - OpenGL Tutorials -

    i checked the gl/ directory and sure enuf no glux.h file?? But there is glext.h file??
    So i just deleted the #include <glux.h>
    but now i hit the error:
    error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fullScreen'|
    this would be in line: bool fullScreen = false;

    on a side note the debugger also states :
    warrning ignoring #pragma comment
    huh this is pretty much the first line:
    #pragma comment(linker, "/subsystem:windows")

    any solutions??

    EDIT: solved
    ichecked the example that codeblock provides and found out that all bool,false,true are only recognized if they r uppercased(BOOL,FALSE,TRUE) *sight*
    Last edited by gustel; 07-07-2010 at 02:41 AM.

  2. #2
    Join Date
    Oct 2007
    Inside my computer
    I suggest you use another tutorial. It's quite old and relies on specific features of the Visual Studio IDE without explaining them.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Jul 2010
    any recomendations??

  4. #4

  5. #5
    Registered User
    Join Date
    Jul 2010


    tyvm gona get started yet again

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM