Thread: compiler is not able to locate "stdafx.h"

  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    8

    compiler is not able to locate "stdafx.h"

    The title pretty much says it all. I'm following the OpenGL tutorial here and I've copied the code in the turorial and tried compiling it (I'm using Dev-C++). The compiler spits an error saying the it can't find the "stdafx.h" header.
    Source code has been posted.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    That header is a Microsoftism. Search for "OpenGL tutorial". Click on the NeHe link.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    8
    "NeHe" link?? As said previously, I am following a OpenGL tutorial (the one on this site, by RoD)

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Search engine.
    First hit.
    Some material here is dated.
    Or it actually states that it is using a specific compiler.
    This syntax prevents Visual C++
    Use Visual C++ version 6 and you should have no problems.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  5. #5
    Registered User
    Join Date
    Jan 2007
    Posts
    8
    thanks..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM