I'm converting a project that was using DCMTK 3.5.4 to 3.6.8.
Here are a few examples:
2>dcmjpeg.lib(djdijg12.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall dcmtk::log4cplus::Logger::isEnabledFor(int)const " (?isEnabledFor@Logger@log4cplus@dcmtk@@QBE_NH@Z)
2>dcmjpeg.lib(djdijg16.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall dcmtk::log4cplus::Logger::isEnabledFor(int)const " (?isEnabledFor@Logger@log4cplus@dcmtk@@QBE_NH@Z)
2>dcmnet.lib(dulconst.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall dcmtk::log4cplus::Logger::isEnabledFor(int)const " (?isEnabledFor@Logger@log4cplus@dcmtk@@QBE_NH@Z)
2>dcmnet.lib(dulparse.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall dcmtk::log4cplus::Logger::isEnabledFor(int)const " (?isEnabledFor@Logger@log4cplus@dcmtk@@QBE_NH@Z)
2>dcmjpeg.lib(djcodecd.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall dcmtk::log4cplus::Logger::isEnabledFor(int)const " (?isEnabledFor@Logger@log4cplus@dcmtk@@QBE_NH@Z)
2>dcmnet.lib(dulparse.obj) : error LNK2001: unresolved external symbol "class std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl dcmtk::log4cplus::detail::get_macro_body_oss(void)" (?get_macro_body_oss@detail@log4cplus@dcmtk@@YAAAV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
2>dcmjpeg.lib(djcodecd.obj) : error LNK2001: unresolved external symbol "class std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl dcmtk::log4cplus::detail::get_macro_body_oss(void)" (?get_macro_body_oss@detail@log4cplus@dcmtk@@YAAAV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
2>dcmnet.lib(dimse.obj) : error LNK2001: unresolved external symbol "class std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl dcmtk::log4cplus::detail::get_macro_body_oss(void)" (?get_macro_body_oss@detail@log4cplus@dcmtk@@YAAAV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
2>dcmnet.lib(dulparse.obj) : error LNK2001: unresolved external symbol "void __cdecl dcmtk::log4cplus::detail::macro_forced_log(class dcmtk::log4cplus::Logger const &,int,class OFString const &,char const *,int,char const *)" (?macro_forced_log@detail@log4cplus@dcmtk@@YAXABVLogger@23@HABVOFString@@PBDH2@Z)
2>dcmjpeg.lib(djcodecd.obj) : error LNK2001: unresolved external symbol "void __cdecl dcmtk::log4cplus::detail::macro_forced_log(class dcmtk::log4cplus::Logger const &,int,class OFString const &,char const *,int,char const *)" (?macro_forced_log@detail@log4cplus@dcmtk@@YAXABVLogger@23@HABVOFString@@PBDH2@Z)
For the logger issues, do I just need to include the oflog.lib when linking on Windows?
I'm seeing link errors with items missing from DCMTK libraries
Moderator: Moderator Team
Re: I'm seeing link errors with items missing from DCMTK libraries
Errors after adding oflog.lib
1>dcmdata.lib(dcspchrs.obj) : error LNK2001: unresolved external symbol _set_oficonv_logger_callback
1>dcmdata.lib(dcspchrs.obj) : error LNK2001: unresolved external symbol _get_oficonv_logger_callback
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFiconv_open
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFiconv
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFiconv_close
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFiconvctl
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFlocale_charset
1>dcmdata.lib(dcspchrs.obj) : error LNK2001: unresolved external symbol _set_oficonv_logger_callback
1>dcmdata.lib(dcspchrs.obj) : error LNK2001: unresolved external symbol _get_oficonv_logger_callback
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFiconv_open
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFiconv
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFiconv_close
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFiconvctl
1>ofstd.lib(ofchrenc.obj) : error LNK2001: unresolved external symbol _OFlocale_charset
Re: I'm seeing link errors with items missing from DCMTK libraries
I added oficonv.lib and that seems to have gotten rid of the remaining linker errors.
Did I miss something in the INSTALL file that says I should include those libraries?
Did I miss something in the INSTALL file that says I should include those libraries?
-
- OFFIS DICOM Team
- Posts: 1506
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Re: I'm seeing link errors with items missing from DCMTK libraries
The INSTALL file does not document library dependencies at all. If you port from a library version published in 2005 to one published in 2023, it should not be too surprising that some things have changed since then
Re: I'm seeing link errors with items missing from DCMTK libraries
Is there anything that could be documented when new dependencies are introduced?
How do folks usually find this out when working with changes between more recent versions of the toolkit?
Stop rubbing it in
How do folks usually find this out when working with changes between more recent versions of the toolkit?
Stop rubbing it in
-
- OFFIS DICOM Team
- Posts: 1506
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Re: I'm seeing link errors with items missing from DCMTK libraries
See the dependency graph at https://support.dcmtk.org/redmine/proje ... ki/Modules
This represents DCMTK 3.6.4 (i.e. we should update it for 3.6.8 ), but it is still mostly correct.
What is missing there is oficonv, which should be at the bottom between config and ofstd. That module was only introduced with 3.6.8.
This represents DCMTK 3.6.4 (i.e. we should update it for 3.6.8 ), but it is still mostly correct.
What is missing there is oficonv, which should be at the bottom between config and ofstd. That module was only introduced with 3.6.8.
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests