Author Topic: include "stdafx.h" error  (Read 8689 times)

Offline bluejayke

  • Multiple posting newcomer
  • *
  • Posts: 18
include "stdafx.h" error
« on: February 24, 2012, 01:38:26 am »
Hello, I was looking at a C++ tutorial, and they gave me a code which at the top had, among other things,

Quote
#include "stdafx.h"
among other codes, which depend upon that directory. The only problem is, when I compile the program, I get the following error:
Quote
error: stdafx.h: No such file or directory|
||=== Build finished: 1 errors, 0 warnings ===|

I know for a fact that stdafx.h should be a directory included in Code::Blocks. Can anyone help me with this? I have already reinstalled multiple times.

Offline p2rkw

  • Almost regular
  • **
  • Posts: 142
Re: include "stdafx.h" error
« Reply #1 on: February 24, 2012, 03:01:11 am »
It's microsoft's visual specific file. This http://wiki.codeblocks.org/index.php?title=Precompiled_headers article is about precompiled headers in c::b.