Cannot open include file: 'StdAfx.h': No such file or directory menu

User Tag List

Results 1 to 3 of 3
  1. #1
    pioneer1337's Avatar Member
    Reputation
    7
    Join Date
    Nov 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot open include file: 'StdAfx.h': No such file or directory

    Well I followed SectorSeven's guide on how to compile a DLL and except I made a script for a GO not a NPC like he was explaining in his guide. (I don't think that matters though)... Anyway, when it came time to build the project this error came up:
    Code:
    
    1>------ Build started: Project: SunCannon, Configuration: Release Win32 ------
    1>Compiling...
    1>Cannon.cpp
    1>..\src\Cannon\Cannon.cpp(20) : fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory
    1>Setup.cpp
    1>..\src\Cannon\Setup.cpp(20) : fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory
    1>Generating Code...
    1>Build log was saved at "file://c:\Users\Pioneer508\Desktop\New Folder (2)\Trunk\projects\2003_int_release_SunCannon\BuildLog.htm"
    1>SunCannon - 2 error(s), 0 warning(s)
    
    Why does this happen?
    How do you wake up when the nightmare is real?

    Cannot open include file: 'StdAfx.h': No such file or directory
  2. #2
    breezy22's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What compiler are you using?

  3. #3
    unknown405's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Project->Settings->C/C++->Category: Precompiled Headers
    Choose "Not using precompiled headers"
    Your compiler is trying to include StdAfx.h as a precompiled header. That's how you fix this problem in VC++ 6.0 - however, if you can't figure out where to turn it off in your compiler then you can also simply include an empty/blank StdAfx header file in your project and it will compile.

Similar Threads

  1. 'StdAfx.h': No such file or directory
    By chancer in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 08-03-2009, 08:06 PM
  2. 1>LINK : fatal error LNK1181: cannot open input file 'arcemu-world.lib' ???
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 08-01-2008, 12:12 AM
  3. Cannot open include file: 'StdAfx.h': No such file or directory???
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 07-31-2008, 05:42 AM
  4. Replies: 1
    Last Post: 03-06-2008, 05:41 PM
  5. Cannot find the files to edit :(
    By Rekro in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 01-01-2007, 06:07 PM
All times are GMT -5. The time now is 09:15 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search