Hello everyone,
 
I write a class to read the XML format file, which derived from 
itk::XMLReaderBase. I have test this XML reader class in ITK(ITK-4.5.1) and it 
works fine. But when I used it in MITK plugin, the compile error showed:
    "fatal error C1083: Cannot open include file: 'itkXMLFile.h': No such file 
or directory"
So I add the ITKIOXML related files and directories manually into the property 
of the plugin project. i.e.: ITKIOXML-4.5.lib; 
..\ITK-src\Modules\ThirdParty\Expat\src\expat;..\ITK-build\Modules\ThirdParty\Expat\src\expat;..\ITK-src\Modules\IO\XML\include.
 

The compile error is gone after these settings. But another linker error 
appears:
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_ParserFree referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_ErrorString referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_GetErrorCode referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_Parse referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_SetUserData referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_SetCharacterDataHandler referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_SetElementHandler referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_ParserCreate referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)

I don't know whether I should set something related to the ITKIOXML module in 
ITK or MITK, or what should I do to fix this issue? Thank you in advance.
The environment of the program are listed as follow:
MITK git version; Visual Studio 2008 sp1; Windows 7 64bit; CMake 2.8.10.2; ITK 
4.5.1; VTK 6.1
 
Best Regards,
Huoling
 
                                          
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to