fatal error C1010



  • Hallo zusammen!

    Ich bin gerade mit dem VC++ 6.0 am verzweifeln. Ich habe eine Klasse Creature die ich in einer .h datei definiere, und ihre Funktionen in einer .cpp Datei implementiere. Das ganze geht auch eigentlich bis auf den Fehler
    "fatal error C1010: Unerwartetes Dateiende waehrend der Suche nach der Direktive fuer die vorkompilierte Header-Datei" gut.
    Weiß jemand die Ursache dafür?
    Etwas Code:

    //Creature.h
    ------------------
    
    #ifndef _CREATURE_H_
    #define _CREATURE_H_
    
    //#include "StdAfx.h"
    #include <stdlib.h>
    #include <string>
    
    using namespace std;
    
    struct Coordinate
    {
    	int x;
    	int y;
    };
    
    class Creature
    {
    public:
    //public Teil
    private:
    //private Teil
    };
    
    #endif
    
    //Creature.cpp
    -----------------
    #include "Creature.h"
    
    //Implementationen
    Creature::Creature()
    {
    }
    
    void Creature::setCoord (Coordinate c)
    {
    	coord = c;
    }
    
    void Creature::setColour (int c)
    {
    	colour = c;
    }
    
    void Creature::setName(string s)
    {
    	name = s;
    }
    
    void Creature::setX (int i)
    {
    	coord.x = i;
    }
    
    void Creature::setY (int i)
    {
    	coord.y = i;
    } //<--hier tritt der Fehler auf!
    

    Danke im VOraus!"



  • Such diese Einstellung im VC6 (ka wo die da ist) und stelle sie mal auf Automatisch Generieren ein.


Anmelden zum Antworten