Visualizzazione dei risultati da 1 a 9 su 9
  1. #1

    [C++] Visual studio 2005

    ho installato Visual studio 2005 e volevo fare un programma di c++... uno ke utilizza la libretia IOSTREAM.H
    ma poi nella fase di compile mi da un errore.. xke??


    fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?




    xke??

  2. #2
    se e' la express edition beta ?

  3. #3
    no... è quella normale dvd da 3 gb circa.. quello ke si ordina tramite internet...

  4. #4
    Utente di HTML.it L'avatar di anx721
    Registrato dal
    Apr 2003
    Messaggi
    2,352
    includi:

    #include <iostream>

    e non

    #include <iostream.h>

    non so se dipende da questo

    Sun Certified Java Programmer

    EUCIP Core Level Certified

    European Certification of Informatics Professionals

  5. #5
    Utente di HTML.it L'avatar di infinitejustice
    Registrato dal
    Nov 2001
    residenza
    Barcelona
    Messaggi
    772
    Error Message
    unexpected end of file while looking for precompiled header directive

    In the Visual Studio environment, use one of the following methods to resolve this error:

    If you do not use precompiled headers in your project, set the Create/Use Precompiled Header property of source files to Not Using Precompiled Headers. To set this compiler option, follow these steps:


    In the Solution Explorer pane of the project, right-click the project name, and then click Properties.


    In the left pane, click the C/C++ folder.


    Click the Precompiled Headers node.


    In the right pane, click Create/Use Precompiled Header, and then click Not Using Precompiled Headers.


    Make sure you have not inadvertently deleted, renamed or removed header file (by default, stdafx.h) from the current project. This file also needs to be included before any other code in your source files using #include "stdafx.h". (This header file is specified as Create/Use PCH Through File project property)
    Live fast. Troll hard.
    Pythonist | Djangonaut | Puppeteer | DevOps | OpenStacker | Lost in malloc
    Team Lead @Gameloft Barcelona

  6. #6
    infinitejustice in poche parole ke devo fare?

  7. #7
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    305
    prova così:

    #include <iostream>
    using namespace std;

  8. #8
    in pratica nelle opzioni di compilazione, devi dire al compilatore che non hai le intestazioni precompilare (quelle che di solito cominciano con stdafx...)
    DYNAMIC+ [ E-mail ]

    Secondo me non si può fare!

  9. #9
    Utente di HTML.it L'avatar di infinitejustice
    Registrato dal
    Nov 2001
    residenza
    Barcelona
    Messaggi
    772
    strano pero, che le versioni che gli MSDN scaricano direttamente da Microsoft (io ho questa) e quella che inviano a casa siano diverse?

    A me nn ha mai dato questo tipo di problemi.

    In ogni caso xfoxmulderx nel menu Help, se immetti il numero dell'errore ti indica da solo cosa fare. Dovrebbe andare anche con le librerie MSDN (e quelle a differenza della beta di vs sono anche in ita)

    Live fast. Troll hard.
    Pythonist | Djangonaut | Puppeteer | DevOps | OpenStacker | Lost in malloc
    Team Lead @Gameloft Barcelona

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.