Mar 25, 2011 at 11:08pm UTC
What is getchar ();
? I use Code::Blocks with the MinGW compiler, and there is no such function in the iostream file.
Mar 26, 2011 at 12:10am UTC
While his use of getchar is a problem, that is not why he is getting the error. There is probably a problem in the builder or linker.
Mar 26, 2011 at 12:12am UTC
I think he's just trying to run the program without having it actually compiled first.
Mar 26, 2011 at 12:19am UTC
It's a precompiled header problem as noted in the build error message,
He should either:
1. turn off the use of precompiled headers
OR
2. #include "stdafx.h"
as the first include.
(If stdafx.h is not present, then he should make one - an empty one would do - and include that)
Mar 26, 2011 at 12:28am UTC
Yeah, you posted like a minute before me, so I didn't know that your solution even existed until I reloaded the page after posting. My bad I guess.
Mar 26, 2011 at 12:34am UTC
Yeah I noticed - but I was on a roll.