468,513 Members | 979 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

Problem with Dev-C++

I am using Dev-C++ for learning purposes and now I am doing a project.My mentor has given a source code that contains
#include<stdafx.h>
dev-c++ compiler doesnt seem to like it.
How could I add stdafx.h into my dev c++????????
Plz help me fast.
Dec 26 '07 #1
1 3352
weaknessforcats
9,207 Expert Mod 8TB
Just delete stdafx.h.

That is a Microsoft header generated by Visual Studio. Its presence tells me your instructor used Visual Studio to create a project containing this code and that he incorrectly sspecified the projecy contents.

stdafx.h is the "standard application framework extended" header. All it is is a header file that contains other header files so that you don't have to include your headers separately in each source file.

You can inclkude your headers indivually, or you can create your own header that include other headers or use stdafx.h.

Personally, unless this is a Windows program, I wouldn't use stdafx.h. Microsoft haters don't like that name.
Dec 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Gandalf | last post: by
reply views Thread by jbaron | last post: by
81 posts views Thread by =?utf-8?B?4piG4piG4piG4piG4piGIFPDvCBLZWl0aCBDaGFr | last post: by
19 posts views Thread by foolsmart2005 | last post: by
28 posts views Thread by Sam Joseph | last post: by
2 posts views Thread by SamuelXiao | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.