将代码从 Visual Studio 2010 传输到 Linux 时,我们遇到下一条消息(编译器):
“Tank.h:24:致命错误:无法写入 PCH 文件:超出磁盘配额”
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); }
它在 Windows 上运行良好
答案1
Disk quota exceeded
- 似乎您在将文件写入磁盘时遇到了问题。请检查权限和可用磁盘空间。也许 root 只为您的用户提供了有限的磁盘空间,而您已经使用了该空间?