Error message??!!!!!
-
i have two C files and want to add to my new project. I've used these files in MFC programming before and everything fines. However, this time when i compiled these files, i got the following error message: "fatal error C1010: unexpected end of file while looking for precompiled header directive" I didn't change anything.......then i tried to just compile the file (this lead me to create a new project).....i used the same directory...same location...nothing change.......and it works!!!!!!!!!! Does anyone know what happeneD? :confused:
-
i have two C files and want to add to my new project. I've used these files in MFC programming before and everything fines. However, this time when i compiled these files, i got the following error message: "fatal error C1010: unexpected end of file while looking for precompiled header directive" I didn't change anything.......then i tried to just compile the file (this lead me to create a new project).....i used the same directory...same location...nothing change.......and it works!!!!!!!!!! Does anyone know what happeneD? :confused:
Your project is configured to use precompiled headers. Usually precompiled headers are included in the stdafx.h file. To solve your problem do one of the following: (a) put the line
#include "stdafx.h"
in your .c files (b) go to FileView in the workspace window. Right-click on your .c file and select "Settings". Go to C/C++ page and select "Precompiled headers" category. Click on "Not using precompiled headers" and OK. YOu have to repeat this for all .c files. Tomasz Sowinski -- http://www.shooltz.com.pl
-
Your project is configured to use precompiled headers. Usually precompiled headers are included in the stdafx.h file. To solve your problem do one of the following: (a) put the line
#include "stdafx.h"
in your .c files (b) go to FileView in the workspace window. Right-click on your .c file and select "Settings". Go to C/C++ page and select "Precompiled headers" category. Click on "Not using precompiled headers" and OK. YOu have to repeat this for all .c files. Tomasz Sowinski -- http://www.shooltz.com.pl
Hi Tomasz, Thanks for your quick response!!! You are superb!!!!! ;) :) ;P :-D :rolleyes: :-O :cool: :suss: :eek: Richard