fatal error C1010: unexpected end of file while looking for precompiled header directive
-
-
In my VC++ project i had to add a .c file that just had this data int cycleTableSize=3; int camData[] = {0,1,2,3,4,5,6}; I am getting the error fatal error C1010: unexpected end of file while looking for precompiled header directive What am i doing wrong ?
In the Project/Settings dialog box (Alt+F7), select the .C file in the list on the left. Then select the C++ tab, Precompiled Headers category. Select the Not using precompiled headers radio button. Otherwise, you'll need to add
#include "stdafx.h"
to the top of the .C file. -
In my VC++ project i had to add a .c file that just had this data int cycleTableSize=3; int camData[] = {0,1,2,3,4,5,6}; I am getting the error fatal error C1010: unexpected end of file while looking for precompiled header directive What am i doing wrong ?
http://www.codeproject.com/cpp/cppforumfaq.asp#cl_nopch[^]
[
](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!
-
In my VC++ project i had to add a .c file that just had this data int cycleTableSize=3; int camData[] = {0,1,2,3,4,5,6}; I am getting the error fatal error C1010: unexpected end of file while looking for precompiled header directive What am i doing wrong ?
Go to project Settings, Alt+F7, and in the right pane, select the file, then select the C++ tab and in the precompiled header category, select not using precompiled header. This should solve your problem. cheers Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org
-
Go to project Settings, Alt+F7, and in the right pane, select the file, then select the C++ tab and in the precompiled header category, select not using precompiled header. This should solve your problem. cheers Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org
Thanks