Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   compiling in visaul c++ (http://www.go4expert.com/forums/compiling-visaul-cpp-t21223/)

lipun4u 6Mar2010 16:45

compiling in visaul c++
I m newly using visual microsoft c++ 2008. I want to use stand C++ in this IDE. But when ever I try to compile any code, it gives me some crazy errors which say that I must include stdafx.h.

Please suggest me how to get rid of this.

techgeek.in 6Mar2010 17:13

Re: compiling in visaul c++
I m pretty sure that u have tried to make a "win 32 console Application"... thr "stdafx.h" and "stdafx.cpp" are necessary files... In order to use visual c++ as a normal c++ IDE then navigate to:
File---->New. There in the "files" tab select the "C++ source file". Now, I hope u wnt be getting any "stdafx.h" related errors..

xpi0t0s 8Mar2010 04:10

Re: compiling in visaul c++
stdafx.h is only required if you have specified "Use precompiled headers". If you don't want to include stdafx.h, uncheck that option. Project - Settings - C/C++, you'll find it somewhere under there.

All times are GMT +5.5. The time now is 22:33.