在QtCreator中使用了QCustomPlot时,构建项目会出现下面的错误:
Fatal error: debug\qcustomplot.o: file too big
解决方法:
在.pro文件中加入
QMAKE_CXXFLAGS += -Wa,-mbig-obj
则构建会成功
在QtCreator中使用了QCustomPlot时,构建项目会出现下面的错误:
Fatal error: debug\qcustomplot.o: file too big
解决方法:
在.pro文件中加入
QMAKE_CXXFLAGS += -Wa,-mbig-obj
则构建会成功