User forums > Help
include "stdafx.h" error
(1/1)
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"
--- End quote ---
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 ===|
--- End quote ---
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.
Navigation
[0] Message Index
Go to full version