1
Development / Re: Compile error Ubuntu 23.10/24.04
« Last post by Havadebo72 on Today at 08:26:06 pm »Thanks.
Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!
/usr/bin/ld: .libs/parsemanager.o: in function `ParseManager::ParseProjectSearchDirs(cbProject const&)':
parsemanager.cpp:(.text+0xebcd): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0xebe8): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0xec32): undefined reference to `TiXmlNode::NextSiblingElement(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0xec49): undefined reference to `TiXmlElement::Attribute(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0xec59): undefined reference to `TiXmlElement::Attribute(char const*) const'
/usr/bin/ld: .libs/parsemanager.o: in function `ParseManager::SetProjectSearchDirs(cbProject&, wxArrayString const&)':
parsemanager.cpp:(.text+0x140a1): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0x140b5): undefined reference to `TiXmlNode::Clear()'
/usr/bin/ld: parsemanager.cpp:(.text+0x140f3): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
/usr/bin/ld: parsemanager.cpp:(.text+0x140fe): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
/usr/bin/ld: parsemanager.cpp:(.text+0x14112): undefined reference to `TiXmlElement::~TiXmlElement()'
/usr/bin/ld: parsemanager.cpp:(.text+0x14145): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
/usr/bin/ld: parsemanager.cpp:(.text+0x141dc): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
/usr/bin/ld: parsemanager.cpp:(.text+0x141e7): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
/usr/bin/ld: parsemanager.cpp:(.text+0x141fb): undefined reference to `TiXmlElement::~TiXmlElement()'
/usr/bin/ld: .libs/parsemanager.o: in function `ParseManager::SetProjectSearchDirs(cbProject&, wxArrayString const&) [clone .cold]':
parsemanager.cpp:(.text.unlikely+0x22ec): undefined reference to `TiXmlElement::~TiXmlElement()'
/usr/bin/ld: parsemanager.cpp:(.text.unlikely+0x230f): undefined reference to `TiXmlElement::~TiXmlElement()'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:702: libcodecompletion.la] Error 1
make[4]: Leaving directory '/home/havadebo/trunk/src/plugins/codecompletion'
make[3]: *** [Makefile:783: all-recursive] Error 1
make[3]: Leaving directory '/home/hains/trunk/src/plugins/codecompletion'
make[2]: *** [Makefile:536: all-recursive] Error 1
make[2]: Leaving directory '/home/havadebo/trunk/src/plugins'
make[1]: *** [Makefile:543: all-recursive] Error 1
make[1]: Leaving directory '/home/havadebo/trunk/src'
make: *** [Makefile:675: all-recursive] Error 1
Index: src/plugins/codecompletion/Makefile.am
===================================================================
--- src/plugins/codecompletion/Makefile.am (revision 13449)
+++ src/plugins/codecompletion/Makefile.am (working copy)
@@ -11,7 +11,8 @@
libcodecompletion_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version
libcodecompletion_la_LIBADD = ../../sdk/libcodeblocks.la\
- $(WX_LIBS)
+ $(WX_LIBS) \
+ $(CB_TINYXML_LIBS)
libcodecompletion_la_SOURCES = ccoptionsdlg.cpp \
ccoptionsprjdlg.cpp \
Index: src/plugins/debuggergdb/Makefile.am
===================================================================
--- src/plugins/debuggergdb/Makefile.am (revision 13449)
+++ src/plugins/debuggergdb/Makefile.am (working copy)
@@ -13,7 +13,8 @@
libdebugger_la_LIBADD = ../../sdk/libcodeblocks.la \
$(WX_LIBS) \
- $(WX_GTK_LIBS)
+ $(WX_GTK_LIBS) \
+ $(CB_TINYXML_LIBS)
libdebugger_la_SOURCES = cdb_driver.cpp \
databreakpointdlg.cpp \
Index: src/plugins/openfileslist/Makefile.am
===================================================================
--- src/plugins/openfileslist/Makefile.am (revision 13449)
+++ src/plugins/openfileslist/Makefile.am (working copy)
@@ -9,7 +9,8 @@
libopenfileslist_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version
libopenfileslist_la_LIBADD = ../../sdk/libcodeblocks.la \
- $(WX_LIBS)
+ $(WX_LIBS) \
+ $(CB_TINYXML_LIBS)
libopenfileslist_la_SOURCES = openfileslistplugin.cpp
noinst_HEADERS = openfileslistplugin.h
Index: src/plugins/projectsimporter/Makefile.am
===================================================================
--- src/plugins/projectsimporter/Makefile.am (revision 13449)
+++ src/plugins/projectsimporter/Makefile.am (working copy)
@@ -11,7 +11,8 @@
libprojectsimporter_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version
libprojectsimporter_la_LIBADD = ../../sdk/libcodeblocks.la \
- $(WX_LIBS)
+ $(WX_LIBS) \
+ $(CB_TINYXML_LIBS)
libprojectsimporter_la_SOURCES = projectsimporter.cpp \
devcpploader.cpp \
Have you run debugger from Debug->Start? You seem to directly run the executable!
-------------- Clean: Debug in ThreadNames (compiler: GNU GCC Compiler)---------------
Cleaned "ThreadNames - Debug"
-------------- Build: Debug in ThreadNames (compiler: GNU GCC Compiler)---------------
g++.exe -Wall -fexceptions -g -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll -c C:\u\CodeBlock_C++\EasyLoggingpp_ThreadNames\ThreadNames\easylogging++.cc -o obj\Debug\easylogging++.o
g++.exe -Wall -fexceptions -g -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll -c C:\u\CodeBlock_C++\EasyLoggingpp_ThreadNames\ThreadNames\main.cpp -o obj\Debug\main.o
g++.exe -o bin\Debug\ThreadNames.exe obj\Debug\easylogging++.o obj\Debug\main.o C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32ud.a C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32u.a
C:\u\CodeBlock_C++\EasyLoggingpp_ThreadNames\ThreadNames\easylogging++.cc: In member function 'el::Logger* el::base::RegisteredLoggers::get(const std::string&, bool)':