Results 1 to 5 of 5

Thread: Need C++ help/suggestion

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    32

    Question Need C++ help/suggestion

    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.

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    951
    my guess is somewhere there is a '/' which should really be a '//'

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    36
    Compile as a console app (workspace wizard)

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    1
    You've forgotten to include stdafx.h

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    13
    Do this inside Visual Studio-

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On