xkouam
(XK)
November 21, 2025, 12:32pm
1
Hello all,
I’m trying to build the source code of my server device with libtango 9.3.4, but I’m getting this errors:
# error LNK2001: symbole externe non résolu "public: static class log4tango::LogInitiator log4tango::LogInitiator::_begin_log" (?_begin_log@LogInitiator@log4tango@@2V12@A)
# error LNK2001: symbole externe non résolu "public: static bool Tango::Util::_UseDb" (?_UseDb@Util@Tango@@2_NA)
# error LNK2001: symbole externe non résolu "class log4tango::Logger * Tango::_core_logger" (?_core_logger@Tango@@3PEAVLogger@log4tango@@EA)
# error LNK2001: symbole externe non résolu "public: static bool Tango::Util::_FileDb" (?_FileDb@Util@Tango@@2_NA)
Building the same projet with libtango 8.1.2 works fine
Does anyone have any ideas to help me solve this problem, please?
Hi!
Since cppTango 9.3.3, log4tango is no longer in a separate library. It is provided directly in libtango, so normally, there is no longer a need to link with liblog4tango.
The location of the log4tango header files changed with cppTango 9.3.3 too (see RELEASE_NOTES.md · 9.3-backports · tango-controls / cppTango · GitLab )
log4tango include files are now installed under <install_prefix>/include/tango/log4tango. You may have to update your Makefiles in order to match this new include install location.
Hoping this helps a bit
tbraun
(Thomas Braun (TB))
November 21, 2025, 5:21pm
3
If you are using cmake you might want to try switching to use our common cmake modules in tango-controls / TangoCMakeModules · GitLab to use tango.
TangoTest does that in CMakeLists.txt · main · tango-controls / TangoTest · GitLab and this works with 9.3. to 10.1.0 (and future versions).
xkouam
(XK)
November 24, 2025, 5:05pm
4
Thanks for tips, I will test that on my visual project