← All bug reports

FS#148"inline" leads to linking error on Linux

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Medium
Priority
Low
Reported version
Development
Operating system
Linux (All / Other)
Reported
2011-07-25 by anonymous
Closed
2011-07-31 by andrew

RPainterPath.h

    inline bool isEmpty() const;
g++ -rdynamic -Wl,-rpath,/home/martin/opt/QtSDK/Desktop/Qt/473/gcc/lib
-o ../../debug/qcad-bin debug/main.o
   -L/home/martin/opt/QtSDK/Desktop/Qt/473/gcc/lib
-L/usr/X11R6/lib -L/home/martin/workspace/rsframework/debug
-L/home/martin/workspace/rsframework/debug/opendesign
 -lecma -lecmaapi -ldwg -lpluginsqt -lgui -lentity -loperations -lspatialindexnavel
 -lgrid -lsnap -lcore -lstemmer -lmath -lrxslt -lrxml -ldxf -lModelerGeometry
 -lTD_BrepRenderer -lTD_Br -lTD_AcisBuilder -lTD_Db -lTD_DbRoot -lTD_Gs
 -lTD_SpatialIndex -lTD_Gi -lTD_Ge -lTD_Root -lFreeType -lTD_Alloc -lRecomputeDimBlock
 -lExFieldEvaluator -lQtWebKit -lQtScript -lQtScriptTools -lQtSvg -lQtSql -lQtXmlPatterns
 -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore -lGLU -lGL -lpthread 
/home/martin/workspace/rsframework/debug/libecmaapi.a(REcmaPainterPath.o): In function `REcmaPainterPath::isEmpty(QScriptContext*, QScriptEngine*)':
/home/martin/workspace/rsframework/src/scripting/ecmaapi/REcmaPainterPath.cpp:2078: undefined reference to `RPainterPath::isEmpty() const'
/home/martin/workspace/rsframework/debug/libgui.a(RGraphicsSceneQt.o): In function `RGraphicsSceneQt::endPath()':
/home/martin/workspace/rsframework/src/gui/RGraphicsSceneQt.cpp:71: undefined reference to `RPainterPath::isEmpty() const'
/home/martin/workspace/rsframework/src/gui/RGraphicsSceneQt.cpp:74: undefined reference to `RPainterPath::isEmpty() const'
/home/martin/workspace/rsframework/debug/libentity.a(RHatchData.o): In function `RHatchData::getBoundingBox() const':
/home/martin/workspace/rsframework/src/entity/RHatchData.cpp:104: undefined reference to `RPainterPath::isEmpty() const'
/home/martin/workspace/rsframework/debug/libentity.a(RHatchData.o): In function `RHatchData::getDistanceTo(RVector const&, bool, double, bool) const':
/home/martin/workspace/rsframework/src/entity/RHatchData.cpp:127: undefined reference to `RPainterPath::isEmpty() const'
/home/martin/workspace/rsframework/debug/libentity.a(RHatchData.o):/home/martin/workspace/rsframework/src/entity/RHatchData.cpp:134: more undefined references to `RPainterPath::isEmpty() const' follow
collect2: ld returned 1 exit status

temporary solution: changed method to non-line