Menu

#36 Compiling error (with solution)

1.0
closed
nobody
None
2015-10-20
2015-09-22
No

compiling error QtRptDesigner:

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DVERSION=\"1.5.4\" -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include/qt4/QtCore -I../../../../include/qt4/QtNetwork -I../../../../include/qt4/QtGui -I../../../../include/qt4/QtXml -I../../../../include/qt4/QtSql -I../../../../include/qt4/QtScript -I../../../../include/qt4 -I../CommonFiles -I../CommonFiles -I../zint-2.4.4/backend_qt4 -I../zint-2.4.4/backend -I../QtRPT -ISQLDiagram -I. -I. -o qtrpt.o ../QtRPT/qtrpt.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DVERSION=\"1.5.4\" -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include/qt4/QtCore -I../../../../include/qt4/QtNetwork -I../../../../include/qt4/QtGui -I../../../../include/qt4/QtXml -I../../../../include/qt4/QtSql -I../../../../include/qt4/QtScript -I../../../../include/qt4 -I../CommonFiles -I../CommonFiles -I../zint-2.4.4/backend_qt4 -I../zint-2.4.4/backend -I../QtRPT -ISQLDiagram -I. -I. -o RptSql.o ../QtRPT/RptSql.cpp
In file included from ../QtRPT/RptSql.cpp:24:0:
../QtRPT/RptSql.h:38:5: error: ‘QImage’ does not name a type
../QtRPT/RptSql.cpp:91:58: error: no ‘QImage RptSql::getFieldImage(QString, int)’ member function declared in class ‘RptSql’

Solution proved by me:
add the to line 39:

include <qimage> to QtRPT/RptSql.h source.</qimage>

Discussion

  • aliks-os

    aliks-os - 2015-09-27

    I see this problem under Qt4 ? As under Qt5 I have not any problem...
    Fixed

     

    Last edit: aliks-os 2015-10-20
  • aliks-os

    aliks-os - 2015-10-20
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB