Hi Sina,

it seems that the linker isn’t able to find mitk::DataNodeFactory, which is 
located in the MitkLegacyIO module. Add MitkLegacyIO to the DEPENDS line of 
your module CMakeLists.txt.

Best,
Stefan

From: Sina Gerlach [mailto:sina.gerlac...@gmx.de]
Sent: Dienstag, 13. Oktober 2015 12:27
To: mitk-users@lists.sourceforge.net
Subject: [mitk-users] error LNK2019: unresolved external symbol

Hello,

I am new to MITK and am trying to use the MITK Tutorial to display an image in 
my own Qt User Interface.

When trying to build my project the following error occurs:

7>     Creating library 
C:/MITK-pt-sb/AwesomeProject-build/bin/Debug/AwesomeApp.lib and object 
C:/MITK-pt-sb/AwesomeProject-build/bin/Debug/AwesomeApp.exp
7>MainWindow.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: static class itk::SmartPointer<class 
mitk::DataNodeFactory> __cdecl mitk::DataNodeFactory::New(void)" 
(__imp_?New@DataNodeFactory@mitk@@SA?AV?$SmartPointer@VDataNodeFactory@mitk@@@itk@@XZ)
 referenced in function "public: void __cdecl 
MainWindow::on_openButton_pressed(void)" 
(?on_openButton_pressed@MainWindow@@QEAAXXZ)


I know this is a linker problem but I dont know which library to link or what 
else has to be done to solve this error.

I hope anyone can help

Best Regards
Sina
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to