Hi,

do you export your IOFactory class, e.g., your declaration should look like 
"class DatImage_EXPORT DatImageReader : ..."? Do you register your IOFactory 
class in your module object factory class, e.g., 
itk::ObjectFactoryBase::RegisterFactory(m_DatImageReader)? You should find two 
quite minimal examples of a IOFactory and object factory class in the 
Simulation module as reference.

Cheers,
Stefan
________________________________________
Von: Franziskus Neuhoff [[email protected]]
Gesendet: Dienstag, 5. August 2014 09:09
An: [email protected]
Betreff: [mitk-users] error LNK2019

Hi,

I programmed a new IOFactory by changing/adding it to the MITK source code and 
it work fine. Now I want to do the same by adding it as module, but when I try 
to compile the module I always get this error message:

Fehler 2 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
""__declspec(dllimport) public: static class itk::SmartPointer<class 
mitk::DatImageReader> __cdecl mitk::DatImageReader::New(void)" 
(__imp_?New@DatImageReader@mitk@@SA?AV?$SmartPointer@VDatImageReader@mitk@@@itk@@XZ<mailto:__imp_?New@DatImageReader@mitk@@SA?AV?$SmartPointer@VDatImageReader@mitk@@@itk@@XZ>)"
 in Funktion ""public: virtual class itk::SmartPointer<class 
mitk::BaseDataSource> __thiscall mitk::IOAdapter<class 
mitk::DatImageReader>::CreateIOProcessObject(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
>,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> >,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >)" 
(?CreateIOProcessObject@?$IOAdapter@VDatImageReader@mitk@@@mitk@@UAE?AV?$SmartPointer@VBaseDataSource@mitk@@@itk@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z<mailto:?CreateIOProcessObject@?$IOAdapter@VDatImageReader@mitk@@@mitk@@UAE?AV?$SmartPointer@VBaseDataSource@mitk@@@itk@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z>)".
 
D:\BIB\MITK\MITK-2014-build\MITK-build\Modules\DatImage\mitkDatImageIOFactory.obj
 MitkDatImage

The modules name is DatImage. Does anybody know this error?

Thanks for your help.

Regards,
Franziskus





------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to