Page 1 of 1

Migrating from Dev-C++ to mVC++ 6.0

PostPosted: Jul 10, 2003 @ 4:55am
by Alexander
I brought all the correct files over into a new project, and it did not compile. It said:


c:\documents and settings\alex apostol\my documents\c and c++\print\calculator\divider.cpp(53) : fatal error C1010: unexpected end of file while looking for precompiled header directive
main.cpp


The bold part is the important part, the compiler already knows where my files are. I do not understand what they mean. I am very sorry for bugging the dev forum lately, but I am just having a hard time learning C/C++ (mostly due to compiler problems).

PostPosted: Jul 10, 2003 @ 7:37am
by Conan

PostPosted: Jul 10, 2003 @ 12:41pm
by Dan East
Go into Project->Settings... and for each source file with that error, go into the C / C++ tab, Precompiled Headers category, and select Not using precompiled headers.

Dan East

PostPosted: Jul 10, 2003 @ 1:02pm
by Alexander
Thank you both very much. I have fixed it by disabling the precompiled headers, just like Mr. East said.

PostPosted: Jul 10, 2003 @ 8:11pm
by fzammetti
Dan, I'm just curious, as I've of course like everyone gotten the unexpected end of file error plenty of times because I didn't close a code block... why does the precompiled headers option cause this problem though?

PostPosted: Jul 10, 2003 @ 9:47pm
by Dan East