I am attempting to compile CB on up-to-date Debian Stretch x64 system using the distro default comiler (GCC 6.3.0). I have attempted to build CB using both the distro default wxWidgets (3.0.2) and the updated 3.1.0 version. Building CB with either wxWidgets version results in the same exact error.
The compilation fails when attempting to link the nativeparser =>
---snip---
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o .libs/ccoptionsdlg.o .libs/ccoptionsprjdlg.o .libs/cctreectrl.o .libs/classbrowser.o .libs/classbrowserbuilderthread.o .libs/codecompletion.o .libs/coderefactoring.o .libs/doxygen_parser.o .libs/gotofunctiondlg.o .libs/insertclassmethoddlg.o .libs/nativeparser.o .libs/nativeparser_base.o .libs/selectincludefile.o .libs/systemheadersthread.o parser/.libs/ccdebuginfo.o parser/.libs/cclogger.o parser/.libs/parser.o parser/.libs/parser_base.o parser/.libs/parserthread.o parser/.libs/parserthreadedtask.o parser/.libs/profiletimer.o parser/.libs/token.o parser/.libs/tokenizer.o parser/.libs/tokentree.o parser/.libs/searchtree.o parser/.libs/expression.o -Wl,-rpath -Wl,/home/zaleksf/Apps/Development/CodeBlocks/build/src/sdk/.libs ../../sdk/.libs/libcodeblocks.so -L/usr/local/lib -lwx_gtk3u_aui-3.1 -lwx_gtk3u_propgrid-3.1 -lwx_gtk3u_richtext-3.1 -lwx_gtk3u_xrc-3.1 -lwx_gtk3u_html-3.1 -lwx_gtk3u_qa-3.1 -lwx_gtk3u_adv-3.1 -lwx_gtk3u_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1 -lpthread -ldl -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/6/crtfastmath.o /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o -O2 -Wl,--no-undefined -pthread -pthread -Wl,-soname -Wl,libcodecompletion.so -o .libs/libcodecompletion.so
.libs/nativeparser.o: In function NativeParser::OnProjectLoadingHook(cbProject*, TiXmlElement*, bool)':
nativeparser.cpp:(.text+0xe93f): undefined reference to
TiXmlNode::FirstChildElement(char const*) const'
...more undefined reference failures...
---snip---
This seems to be related to tinyxml, which is installed (C::B configure does recognize it).
On further inspection of the nativeparser.cpp and .h source files, it appears that TiXmlNode does not exist.
Do you have tinyxml installed? Which version is used the one on your system or the one shipped with cb's sources? If it is the system one then I guess it is not compatible in some way.
Thanks for your quick response.
My system has tinyxml-2.6.2 installed. tinyxml2 is also available (v 4.0.1) but that is not installed on my system.
I removed the tinyxml-dev package from my system, and successfully compiled CB - yeah! I assume that the CB make file uses the source version if my system has no other versions installed.
Thanks!