Thread: Compiler missing stdafx.h include file

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

    Compiler missing stdafx.h include file

    so im using the portable version of dev cpp and its missing this file for some reason... I'm not sure if there is any way that i can download it or not... thanks.. I tried google but no luck

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    stdafx.h is not a standard header. It's a manually created header for projects, such as my_include.h.
    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
    Dec 2006
    Location
    Canada
    Posts
    3,229
    It's added by Visual Studio for precompiled headers(?). Just take it out.

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    106
    yeah i commented it out and it worked..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling C in Visual Studio 2005
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-16-2009, 04:25 AM
  2. C programing doubt
    By sivasankari in forum C Programming
    Replies: 2
    Last Post: 04-29-2008, 09:19 AM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM