News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

include "stdafx.h" error

Started by bluejayke, February 24, 2012, 01:38:26 AM

Previous topic - Next topic

bluejayke

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:
Quoteerror: 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.

p2rkw

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.