Opened 7 years ago

Closed 7 years ago

#4736 closed defect (fixed)

Undefined reference to OMCInterface::throwException

Reported by: Rüdiger Franke Owned by: Adeel Asghar
Priority: high Milestone: 1.13.0
Component: OMEdit Version:
Keywords: Cc: Martin Sjölund

Description

Attempting to build OMEdit from the current sources, the below linker error is raised, even after make clean in the OpenModelica main directory as well as in the subdirectories OMCompiler and OMEdit.

What is wrong?

make[3]: Entering directory '/home/user/OpenModelica/OMEdit/OMEdit/OMEditGUI'
g++ -m64 -Wl,-rpath-link,/home/rfranke/OpenModelica/build/lib/x86_64-linux-gnu/omc -rdynamic -o ../bin/OMEdit main.o Helper.o Utilities.o StringHandler.o MainWindow.o OpenModelicaScriptingAPIQt.o OMCProxy.o MessagesWidget.o LibraryTreeWidget.o Commands.o CoOrdinateSystem.o ModelWidgetContainer.o ModelicaClassDialog.o SearchWidget.o OptionsDialog.o BaseEditor.o ModelicaEditor.o TransformationsEditor.o TextEditor.o CEditor.o CompositeModelEditor.o MetaModelicaEditor.o HTMLEditor.o PlotWindowContainer.o Component.o ShapeAnnotation.o CornerItem.o LineAnnotation.o PolygonAnnotation.o RectangleAnnotation.o EllipseAnnotation.o TextAnnotation.o BitmapAnnotation.o ComponentProperties.o Transformation.o DocumentationWidget.o SimulationDialog.o SimulationOutputWidget.o SimulationProcessThread.o SimulationOutputHandler.o FetchInterfaceDataDialog.o FetchInterfaceDataThread.o TLMCoSimulationDialog.o TLMCoSimulationOutputWidget.o TLMCoSimulationThread.o ImportFMUDialog.o ImportFMUModelDescriptionDialog.o VariablesWidget.o NotificationsDialog.o ShapePropertiesDialog.o OMDumpXML.o diff_match_patch.o TransformationsWidget.o CommandFactory.o GDBAdapter.o StackFramesWidget.o LocalsWidget.o ModelicaValue.o BreakpointMarker.o BreakpointsWidget.o BreakpointDialog.o DebuggerConfigurationsDialog.o AttachToProcessDialog.o ProcessListModel.o backtrace.o GDBBacktrace.o CrashReportDialog.o GitCommands.o CommitChangesDialog.o RevertCommitsDialog.o CleanDialog.o OMEditApplication.o TraceabilityGraphViewWidget.o TraceabilityInformationURI.o OpcUaClient.o GLWidget.o AbstractAnimationWindow.o ViewerWidget.o AnimationWindow.o ThreeDViewer.o ExtraShapes.o Visualizer.o VisualizerMAT.o VisualizerCSV.o VisualizerFMU.o FMUSettingsDialog.o FMUWrapper.o Shapes.o TimeManager.o moc_Helper.o moc_Utilities.o moc_StringHandler.o moc_MainWindow.o moc_OMCProxy.o moc_MessagesWidget.o moc_LibraryTreeWidget.o moc_ModelWidgetContainer.o moc_ModelicaClassDialog.o moc_SearchWidget.o moc_OptionsDialog.o moc_BaseEditor.o moc_ModelicaEditor.o moc_TransformationsEditor.o moc_TextEditor.o moc_CEditor.o moc_CompositeModelEditor.o moc_MetaModelicaEditor.o moc_HTMLEditor.o moc_PlotWindowContainer.o moc_Component.o moc_ShapeAnnotation.o moc_CornerItem.o moc_LineAnnotation.o moc_PolygonAnnotation.o moc_RectangleAnnotation.o moc_EllipseAnnotation.o moc_TextAnnotation.o moc_BitmapAnnotation.o moc_ComponentProperties.o moc_DocumentationWidget.o moc_SimulationDialog.o moc_SimulationOutputWidget.o moc_SimulationProcessThread.o moc_SimulationOutputHandler.o moc_FetchInterfaceDataDialog.o moc_FetchInterfaceDataThread.o moc_TLMCoSimulationDialog.o moc_TLMCoSimulationOutputWidget.o moc_TLMCoSimulationThread.o moc_ImportFMUDialog.o moc_ImportFMUModelDescriptionDialog.o moc_VariablesWidget.o moc_NotificationsDialog.o moc_ShapePropertiesDialog.o moc_TransformationsWidget.o moc_GDBAdapter.o moc_StackFramesWidget.o moc_LocalsWidget.o moc_ModelicaValue.o moc_BreakpointMarker.o moc_BreakpointsWidget.o moc_BreakpointDialog.o moc_DebuggerConfigurationsDialog.o moc_AttachToProcessDialog.o moc_ProcessListModel.o moc_GDBBacktrace.o moc_CrashReportDialog.o moc_GitCommands.o moc_CommitChangesDialog.o moc_RevertCommitsDialog.o moc_CleanDialog.o moc_TraceabilityGraphViewWidget.o moc_TraceabilityInformationURI.o moc_OpcUaClient.o moc_AbstractAnimationWindow.o moc_ViewerWidget.o moc_AnimationWindow.o moc_ThreeDViewer.o moc_FMUSettingsDialog.o qrc_resource_omedit.o    -L/usr/lib/x86_64-linux-gnu -L/usr/X11R6/lib64 -L /home/rfranke/OpenModelica/build/lib/x86_64-linux-gnu/omc -lOMPlot -lomqwt -lfmilib_shared -L../OMEditGUI/Debugger/Parser -lGDBMIParser -lomantlr3 -Wl,-z,origin -Wl,-rpath,'$ORIGIN/../lib/x86_64-linux-gnu/omc' -Wl,-rpath,'$ORIGIN' -lOpenModelicaCompiler -lOpenModelicaRuntimeC -lomcgc -L/home/rfranke/OpenModelica/build/lib/x86_64-linux-gnu/omc -losg -losgViewer -losgDB -losgGA -lOpenThreads -lomopcua -lqjson -lQtWebKit -lQtSvg -lQtXmlPatterns -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore -lGL -lpthread 
OpenModelicaScriptingAPIQt.o: In function `OMCInterface::OMCInterface(threadData_s*)':
/home/user/OpenModelica/OMEdit/OMEdit/OMEditGUI/../../../build/include/omc/scripting-API/OpenModelicaScriptingAPIQt.cpp:9: undefined reference to `vtable for OMCInterface'
OpenModelicaScriptingAPIQt.o: In function `OMCInterface::generateScriptingAPI(QString, QString)':
/home/user/OpenModelica/OMEdit/OMEdit/OMEditGUI/../../../build/include/omc/scripting-API/OpenModelicaScriptingAPIQt.cpp:20: undefined reference to `OMCInterface::logCommand(QString, QTime*)'
/home/user/OpenModelica/OMEdit/OMEdit/OMEditGUI/../../../build/include/omc/scripting-API/OpenModelicaScriptingAPIQt.cpp:44: undefined reference to `OMCInterface::logResponse(QString, QTime*)'
/home/user/OpenModelica/OMEdit/OMEdit/OMEditGUI/../../../build/include/omc/scripting-API/OpenModelicaScriptingAPIQt.cpp:39: undefined reference to `OMCInterface::throwException(QString)'

Change History (3)

comment:1 by Adeel Asghar, 7 years ago

Cc: Martin Sjölund added

comment:2 by Adrian Pop, 7 years ago

I suggest make gitclean if you didn't do that. There are changes to both omc and omedit.

comment:3 by Rüdiger Franke, 7 years ago

Resolution: fixed
Status: newclosed

make gitclean, followed by a fresh autoconf, ... works. Thanks!

Note: See TracTickets for help on using tickets.