Code::Blocks Forums

User forums => Help => Topic started by: bluejayke on February 24, 2012, 01:38:26 am

Title: include "stdafx.h" error
Post by: bluejayke 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.
Title: Re: include "stdafx.h" error
Post by: p2rkw 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.