Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Linking errors for OCCT with Qt(MinGW 5.5.1)



  • I am trying to build sample application which comes with Opencascade.
    Oencascade version 6.8.0 with Qt 5.5.1(windows-x86-mingw492).
    I am facing linking errors as given below:

    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0xcf): undefined reference to Standard::Allocate(unsigned int)' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0xdb): undefined reference toAIS_Shape::AIS_Shape(TopoDS_Shape const&)'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0xeb): undefined reference to Handle_Standard_Transient::BeginScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x114): undefined reference toAIS_InteractiveContext::SetMaterial(Handle_AIS_InteractiveObject const&, Graphic3d_NameOfMaterial, unsigned int)'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x11f): undefined reference to Handle_Standard_Transient::EndScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x148): undefined reference toAIS_InteractiveContext::SetDisplayMode(Handle_AIS_InteractiveObject const&, int, unsigned int)'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x153): undefined reference to Handle_Standard_Transient::EndScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x174): undefined reference toAIS_InteractiveContext::Display(Handle_AIS_InteractiveObject
    const&, unsigned int)'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x17f): undefined reference to Handle_Standard_Transient::EndScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x1a0): undefined reference toAIS_InteractiveContext::SetCurrentObject(Handle_AIS_InteractiveObject
    const&, unsigned int)'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x1ab): undefined reference to Handle_Standard_Transient::EndScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x1c6): undefined reference toHandle_Standard_Transient::EndScope()'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x1d0): undefined reference to TopLoc_SListOfItemLocation::Clear()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x1d7): undefined reference toHandle_Standard_Transient::EndScope()'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x1de): undefined reference to Handle_Standard_Transient::EndScope()' Makefile.Release:140: recipe for target 'winwin32\vc10\bin\Tutorial.exe' failed winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x201): undefined reference toHandle_Standard_Transient::EndScope()'
    mingw32-make[1]: Leaving directory
    'C:/OpenCASCADE6.8.0/opencascade-6.8.0/samples/qt/build-Tutorial-Desktop_Qt_5_5_0_MinGW_32bit-Release'
    makefile:34: recipe for target 'release' failed
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x212): undefined reference to Handle_Standard_Transient::EndScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x220): undefined reference toHandle_Standard_Transient::EndScope()'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x227): more undefined references to Handle_Standard_Transient::EndScope()' follow winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x231): undefined reference toTopLoc_SListOfItemLocation::Clear()'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x238): undefined reference to Handle_Standard_Transient::EndScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x23f): undefined reference toHandle_Standard_Transient::EndScope()'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x251): undefined reference to Handle_Standard_Transient::EndScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x25d): undefined reference toHandle_Standard_Transient::EndScope()'
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x266): undefined reference to Handle_Standard_Transient::EndScope()' winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x272): more undefined references toHandle_Standard_Transient::EndScope()' follow
    winwin32/vc10/obj/DocumentTut.o:DocumentTut.cxx:(.text+0x28e): undefined reference to `Standard::Free(void*)'

    Let me know how to resolve errors or any more information required.


Log in to reply