Problem with the example

This is a discussion on Problem with the example within the C++ Programming forums, part of the General Programming Boards category; I use CodeBlocks and i have a problem first one was that it could not find #include "stdafx.h" which i ...

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    3

    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 - Cprogramming.com

    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
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,543
    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
    Posts
    3
    any recomendations??

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    106

  5. #5
    Registered User
    Join Date
    Jul 2010
    Posts
    3

    Talking

    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, 10: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

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