Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Development / Re: Compile error Ubuntu 23.10/24.04
« Last post by Havadebo72 on Yesterday at 08:26:06 pm »
Thanks.
2
Spam reported (again) to the moderator.
3
Development / Re: Compile error Ubuntu 23.10/24.04
« Last post by Miguel Gimenez on Yesterday at 11:49:07 am »
Thank you for reporting, I will fix this ASAP.

EDIT: Fixed in r13512.
4
Development / Compile error Ubuntu 23.10/24.04
« Last post by Havadebo72 on Yesterday at 11:29:19 am »
Hi

Compile error since revision 13437 (- Build: Fixes building using autotools without passing --disable-shared (ticket #1452, thanks Mehdi Chinoune).)

Code
/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

I must apply this patch to make the compilation successful.

Code
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 \
5
Help / Re: Running debugger runs the output file, not the debugger (AGC)
« Last post by NeilFraser on Yesterday at 01:03:19 am »
Quote
Have you run debugger from Debug->Start? You seem to directly run the executable!

Well.  I guess that's what I get for trying to solve this problem at 3 am...   :o

Thanks!
6
Using Code::Blocks / Auto activating projects in workspace
« Last post by Hakar on April 22, 2024, 08:38:39 pm »
Hello, sorry if this question has been asked before
is there a way that Codeblocks auto activates the project I'm working in?
when I edit a code and compile it, I have to go to this menu and manually activate it before compiling it.
7
You can print the __cplusplus macro, see this link for more information.
8
General (but related to Code::Blocks) / Re: g++.exe what -std=c++ <what version>
« Last post by stahta01 on April 22, 2024, 06:04:03 pm »
What ever is the default for the Compiler version installed!

Learn about the compiler you installed and the use a web search tool to find the default standard for C and C++.

Tim S.
9
General (but related to Code::Blocks) / g++.exe what -std=c++ <what version>
« Last post by jmClifford on April 22, 2024, 05:08:13 pm »
Hi. I understand that I have installed a compiler package in a folder MinGW.
If I do not specify in CB what to use, then how can I determine what has been used
(wrt C++ standard) ??

A sample of the built log follows;


Quote
-------------- 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)':

 


Regards JC.....
10
Help / Re: Running debugger runs the output file, not the debugger (AGC)
« Last post by Grit Clef on April 22, 2024, 01:03:43 pm »
Have you run debugger from Debug->Start? You seem to directly run the executable!
Pages: [1] 2 3 4 5 6 ... 10