error: changes meaning of ‘xxx’ from ‘class xxx’ [-fpermissive]  class model

/home/wss/linux/Qt_Project/03exprPro/exprPro/model.h:6: error: changes meaning of ‘model’ fromclass model’ [-fpermissive]
 class model
       ^~~~~

 原因是在另一个类里,定义了一个这个类的指针。

error: changes meaning of ‘xxx’ from ‘class xxx’ [-fpermissive]  class model

至于为什么定义了这个就报错呢。暂时没搞明白,我是跟着教程做的,人家没事,我这报错!!!

 

相关文章:

  • 2021-11-12
  • 2022-01-07
  • 2021-07-25
  • 2021-08-30
  • 2022-12-23
  • 2021-04-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-18
  • 2021-11-12
  • 2021-07-28
  • 2021-08-01
  • 2021-07-14
相关资源
相似解决方案