Qt 错误"new types may not be defined in a return type" error

来源:互联网 发布:淘宝详情页怎么加链接 编辑:程序博客网 时间:2024/06/05 14:41

编译提示构造函数的地方有错,但具体检查了确实没找到任何错误,莫名其妙,后来去查.h文件,发现类的声明时没加“;” 

 class 类名
 {
      public:
     protected:

     private:
  } ---------这里没有“;”

 

如果你的类是如此声明的,那么编译过程将出现: "new types may not be defined in a return type" error

类声明结束时别忘了加上分号“;”!

0 0