Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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

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

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?

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.