Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Problem noticed using today's SVN under MSys2 MINGW64 wxWidgets version 3.2.11-1

Skipped building contrib debugger plugin because it also had an wxWidgets 3.2 build error.

Tim S.

Code
Index: src/plugins/codecompletion/doxygen_parser.cpp
===================================================================
--- src/plugins/codecompletion/doxygen_parser.cpp (revision 14040)
+++ src/plugins/codecompletion/doxygen_parser.cpp (working copy)
@@ -208,7 +208,7 @@
 
         if (m_Pos + kwLen < (int)doc.size())
         {
-            if ( !IsOneOf(doc[m_Pos + kwLen], wxString(" \t\n")) )
+            if ( !IsOneOf(doc[m_Pos + kwLen], wxS(" \t\n")) )
                 return NO_KEYWORD;
         }
 
@@ -361,7 +361,7 @@
             return false;
         ++m_Pos;
 
-        while (!IsEnd(doc) && IsOneOf(doc[m_Pos], wxString(" \t*/")) )
+        while (!IsEnd(doc) && IsOneOf(doc[m_Pos], wxS(" \t*/")) )
             ++m_Pos;
 
         return true;
Index: src/plugins/codecompletion/parser/tokenizer.cpp
===================================================================
--- src/plugins/codecompletion/parser/tokenizer.cpp (revision 14040)
+++ src/plugins/codecompletion/parser/tokenizer.cpp (working copy)
@@ -1042,7 +1042,7 @@
     else if (wxIsdigit(c))
     {
         // numbers
-        while (NotEOF() && CharInString(CurrentChar(), wxString("0123456789.abcdefABCDEFXxLl") ))
+        while (NotEOF() && CharInString(CurrentChar(), wxS("0123456789.abcdefABCDEFXxLl") ))
             MoveToNextChar();
 
         if (IsEOF())
2
Using Code::Blocks / Does CB Nightly debugger plugin work with parameters?
« Last post by stahta01 on Yesterday at 11:44:17 pm »
Does CB Nightly debugger plugin work with parameters?

I have not used CB debugger plugin with parameters in a long time does it work still?

Tim S.
3
Help / Re: wxSmith has a blackout!
« Last post by Danois on Yesterday at 07:37:27 pm »
Change to fail configure with a clear error when pkg-config is unavailable is added to svn r14039

Sounds great! Just mind that the macro may be provided from other packages, like "pkgconf" on Arch based systems. As far as I recall, the package must be available during bootstrap so user must re-run bootstrap or "autoreconf -if" if the package is installed after the initial bootstrap.

EDIT: I just looked at "configure" and it seems like the test is already present:

Code
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes

EDIT2: The package "pkg-config" is a placeholder which pulls in package "pkgconf" instead, both packages provide "/usr/bin/pkg-config", so no need to check for multiple packages.
4
Help / Re: wxSmith has a blackout!
« Last post by christo on Yesterday at 06:47:34 pm »
Change to fail configure with a clear error when pkg-config is unavailable is added to svn r14039
5
Hi,

I find out that the C::B doesn't have some c++ keywords highlighted like "print" and others. I've been adding in my list (settings->Editor->Syntax Highlighting->'button' Keywords).

How can I help you guys to send this adding to include to the next new version?

By the way, I'm using the KDE Fedora distro and the last update I had got from C::B is the version 25.03-7. I saw in the forums that there is a frequent release of nightly version. Isn't a good idea to publish a new version more frequently to the general public?
6
Probably the "Select default compiler" dialog...
7
Code
Run # Quietly build the Code::Blocks project in CLI mode
  # Quietly build the Code::Blocks project in CLI mode
  codeblocks --no-splash-screen --no-associative --no-dde --target="Release" --build image-label-gui.cbp
  shell: D:\a\_temp\setup-msys2\msys2.CMD {0}
  env:
    MSYSTEM: UCRT64
Starting Code::Blocks Release 25.03  rev 0 Jul 28 2026, 05:55:01 - wxWidgets 3.2.10 - gcc 16.1.0 (Windows, unicode) - 64 bit
Manager initialized
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
Abbreviations: loaded
AStylePlugin: loaded
Autosave: loaded
AutoVersioning: loaded
BrowseTracker: loaded
BYOGames: loaded
CB_Koders: loaded
Cccc: loaded
clangd_client: loaded
ClassWizard: loaded
CodeCompletion: loaded
CodeSnippets: loaded
CodeStat: loaded
Compiler: loaded
copystrings: loaded
CppCheck: loaded
Cscope: loaded
Debugger: loaded
FilesExtensionHandler: loaded
DoxyBlocks: loaded
cbDragScroll: loaded
EditorConfig: loaded
EditorTweaks: loaded
EnvVars: loaded
Exporter: loaded
FileManager: loaded
HeaderFixup: loaded
HelpPlugin: loaded
HexEditor: loaded
IncrementalSearch: loaded
cbKeyBinder: loaded
lib_finder: loaded
MouseSap: loaded
NassiShneidermanPlugin: loaded
OccurrencesHighlighting: loaded
OpenFilesList: loaded
Profiler: loaded
ProjectOptionsManipulator: loaded
ProjectsImporter: loaded
RegExTestbed: loaded
ReopenEditor: loaded
rndgen: loaded
ScriptedWizard: loaded
SmartIndentCpp: loaded
SmartIndentFortran: loaded
SmartIndentHDL: loaded
SmartIndentLua: loaded
SmartIndentPascal: loaded
SmartIndentPython: loaded
SmartIndentXML: loaded
SpellChecker: loaded
SymTab: loaded
ThreadSearch: loaded
ToDoList: loaded
ToolsPlus: loaded
The plugin name "wxSmithMime" does not match the name in the "wxSmith" file.
wxSmith: loaded
wxSmithMime: loaded
wxSmithAui: loaded
wxSmithContribItems: loaded
WindowsXPLookNFeel: loaded
Abbreviations plugin activated
Source code formatter (AStyle) plugin activated
Autosave plugin activated
Automatic versioning plugin activated
BrowseTracker plugin activated
BYO Games plugin activated
Koders query plugin activated
Cccc plugin activated
Class wizard plugin activated
Code completion plugin activated
Code snippets plugin activated
Code statistics plugin activated
Added compiler "GNU GCC Compiler"
ClassBrowser::UpdateClassBrowserView(): No active project available.
Updating class browser...
Class browser updated (452 msec)
Added compiler "Microsoft Visual C++ Toolkit 2003"
Added compiler "Microsoft Visual C++ 2005/2008"
Added compiler "Microsoft Visual C++ 2010"
Added compiler "Microsoft Visual C++ 2017"
Added compiler "OpenWatcom (W32) Compiler"
Added compiler "Cygwin GCC"
Added compiler "LCC Compiler"
Added compiler "Keil C51 Compiler"
Added compiler "Keil CX51 Compiler"
Added compiler "IAR 8051 Compiler"
Added compiler "IAR ARM Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for Android"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "Borland C++ Compiler (5.5, 5.82)"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "LLVM Clang Compiler"
Added compiler "Digital Mars Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU GCC MinGW Compiler"
Added compiler "GNU GCC MinGW64 Compiler"
Added compiler "GNU GCC MSYS MinGW32 Compiler"
Added compiler "GNU GCC MSYS MinGW64 Compiler"
Added compiler "GNU GCC TDM-32 Compiler"
Added compiler "GNU GCC TDM-64 Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "Code Warrior Compiler for PowerPC"
Added compiler "*No Compiler*"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "Small Device C Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "GNU GCC Compiler for ZPU"
Master path of compiler ID "gcc" is empty -> triggers auto-detection.
Master path of compiler ID "msvctk" is empty -> triggers auto-detection.
Master path of compiler ID "msvc8" is empty -> triggers auto-detection.
Master path of compiler ID "mTerminate batch job (Y/N)?
Error: The operation was canceled.


I see it just hangs. Maybe some message box jumps out, and it is waiting for user input or click.

see:

https://github.com/asmwarrior/image-label-gui/actions/runs/36129683779/job/108053833030
8
Any one has such experience before? I mean I have a cbp project, and I'd like to run something like:

Code
codeblocks.exe --no-associative --no-dde --target="Release" --build test.cbp

Thanks.

I found one discussion 6 years ago, but this is on a linux build, see this: github action [Resolved]

9
Help / Re: wxSmith has a blackout!
« Last post by Danois on September 24, 2026, 07:26:49 pm »
Thank you for your suggestion. I spun up a VM with a clean instance of Kubuntu 26.04 (I assume the following works for any *buntu), and this is what worked:

Code
#!/bin/bash
set -e

# Required packages
sudo apt update
sudo apt install -y build-essential libtool pkg-config libglib2.0-dev libgtk-3-dev libwxgtk3.2-dev subversion

# Get the source
cd "$(xdg-user-dir DOCUMENTS)"
svn checkout svn://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-code
cd codeblocks-code

# Build & install
./bootstrap
./configure --with-contrib-plugins=all,-NassiShneiderman --prefix=/opt/codeblocks
make -j $(nproc)
sudo make install

# Desktop integration
mkdir -p ~/.local/share/applications
cat /opt/codeblocks/share/applications/codeblocks.desktop | \
  sed 's/^Exec=.*/Exec=\/opt\/codeblocks\/bin\/codeblocks \%F/' | \
  sed 's/^Icon=.*/Icon=application-x-codeblocks/' > ~/.local/share/applications/codeblocks.desktop

mkdir -p ~/.local/share/icons/hicolor/48x48/mimetypes
ln -s /opt/codeblocks/share/icons/hicolor/48x48/mimetypes/* ~/.local/share/icons/hicolor/48x48/mimetypes/

mkdir -p ~/.local/share/mime/packages
ln -s /opt/codeblocks/share/mime/packages/* ~/.local/share/mime/packages/

There are a couple of things, though.. Whilst running "configure .." i got an error that seemed to be related to a missing library (zlib), but after a lot of investigation I found out that the macro "PKG_CHECK_MODULES( .. )" was unavailable because the package "pkg-config" was not installed. I would suggest to either check for the presence of this package during bootstrap:

Code
# Test if pkg-config/pkgconf exists or else PKG_CHECK_MODULES(..) is not generated
if test -z "`which pkg-config`" && test -z "`which pkgconf`"; then
  echo "pkg-config or pkgconf is required. Aborting build..."
  exit 1
fi

The portability of this approach is unknown, though.. You could also use AC_CHECK_LIB in configure.ac instead:

Code
AC_CHECK_LIB([z], [compress2], [], [AC_MSG_ERROR([ZLib (libz) was not found!])])

Which is portable.

During the first launch of C::B, i created a new wxWidgets project and landed on wxSmith which took up all the space of the main window and from there I had to go to the View menu and show the "Manager" before I could find the headers / sources. If you are not familiar with C::B, that is not very intuitive and I would suggest that the Manager showing the "Projects" tab is always displayed when C::B is launched for the first time.

EDIT: I posted the wrong "bootstrap" snippet, "pkg-config --version" should have been "which pkg-config" which is corrected now.
10
Development / Re: Change to C++17?
« Last post by gd_on on September 24, 2026, 09:23:51 am »
I usually build CB with gnu++20 (even tests with gnu++26). No problems, except a few warnings concerning obsolete things which are not there with c++17. I have seen that the generated code is a little bit bigger.
Pages: [1] 2 3 4 5 6 ... 10