Results 1 to 4 of 4

Thread: iostream :confused:

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96

    Question iostream :confused:

    I cant get Iostream.h to work with visual studios. I get the error
    c:\program files\microsoft visual studio\myprojects\testi\text1.cpp(2) : fatal error C1010: unexpected end of file while looking for precompiled header directive
    Last edited by cogman; Nov 11th, 2001 at 03:13 PM.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    you could solve this, but the brute force method is easier to explain:
    Create a new project. Choose "empty project". Insert all your files into the project. Now it should work. I hate precompiled headers.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    it shouldn't be capitalized. just do, #include <iostream.h>

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  4. #4
    amac
    Guest
    You can do 1 of two things....

    1) At the top of the file that is giving you this error include the precompiled header ( eg. #include "stdafx.h" )

    2) Go into the project settings and select the file that is giving you the error and change the settings so that it doesn't use a precompiled header.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width