while transfer code from visual studio 2010 to linux we encounter the next message (compiler):

"Tank.h:24: fatal error: can`t write PCH file: Disk quota exceeded"

class Tank: public Vehicle
{
public:
    Tank(char* veID, char* model, int numOfBooms, char* baseName);
    ~Tank();
     virtual ostream& Print (ostream& res) const;
     virtual void SetDistanceToTreat(double dis);
     virtual double GetDistanceToTreat() const {return m_distanceToTreat;}
     virtual void IntializeDistanceToTreat(); 

private:
    double m_distanceToTreat;
    int m_numOfBooms;

};

inline ostream& operator<<(ostream &res, const Tank& t) //line 24
{ return t.Print(res); }

it works perfectly in windows

link|improve this question
feedback

migrated from stackoverflow.com Sep 26 '10 at 18:22

This question came from our site for professional and enthusiast programmers.

1 Answer

Disk quota exceeded - seems like you have problems writing a file to the disk. Check the permissions and free disk space. Maybe the root gave your user just a limited disk space, which you have already used?

link|improve this answer
The problem was that the inline function should be in the header of the father class "Vehicle" and not in the derive classes . – Elad Betite Sep 26 '10 at 17:43
feedback

Your Answer

 
or
required, but never shown