PDA

View Full Version : Need C++ help/suggestion



nvmy383z28
11-04-2002, 01:34 PM
Compiling...
getkey.cpp
c:\program files\microsoft visual studio\myprojects\getkey\getkey.cpp(109) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.

getkey.exe - 1 error(s), 0 warning(s)


I tested the "hello world" application and it compiled ok


any suggestions? (yes i did use the search and google.com ;) ) havent been able to find anyone with a related problem - most cl.exe errors point to syntax error. Source code has been tried from the posts on this forum with no luck.

Any ideas?

Thanks.

fryfrog
11-04-2002, 02:49 PM
my guess is somewhere there is a '/' which should really be a '//'

gawker
11-04-2002, 02:54 PM
Compile as a console app (workspace wizard)

roach
11-05-2002, 09:11 AM
You've forgotten to include stdafx.h

waldi
11-05-2002, 01:13 PM
Do this inside Visual Studio-

Projects/Settings
C/CPP tab
drop down "Category" to Precompiled Headers
Select "Not using Precompiled Headers"