Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Using Code::Blocks / Re: OpenCV error in code::blocks
« Last post by Miguel Gimenez on Today at 10:11:30 am »
There is a double backslash in the search path:

Code
mingw\\lib\libopen
2
Using Code::Blocks / OpenCV error in code::blocks
« Last post by jhongramaticus on Today at 09:49:54 am »
I'm trying to use OpenCV (version 4.12.0) in Code::Blocks (version 25.03). When installing OpenCV, I used CMake to generate the libraries in Code::Blocks and Mingw. Once I obtained openCV.cbp, I compiled it in Code::Blocks to generate the libraries. After that, I opened code::blocks<<file<<new<<project<<openCV project<< next<<next<<next<< and I got the following error:
 
Code
the lib path you entered seems invalid, can't find files C:\opencv\build\x86\mingw\\lib\libopencv_core121.dll.a or C:\opencv\build\x86\mingw\\lib\libopencv_core121d.dll.a 

I created the x86<<mingw folder so that cmake would generate the files in that location. Despite searching for help on Stack Overflow and other sites, I found no answers. I renamed the library libopencv_core4120.dll to libopencv_core121d.dll.a and it worked fine until yesterday. Now I've deleted code::blocks and OpenCV, regenerated the libraries, and when I try to use any program that has an OpenCV library, I get the message:

Code
"Code execution cannot continue because libopencv:core4110.dll was not found. This problem can be solved by reinstalling the program." I got the same message for libopencv_imgcodecs4120.dll and also libopencv_imgproc4120.dll.


Before attempting to create code using OpenCV's Code::Blocks project, I added it only to Settings <<Compiler <<Linker Settings and the directory to Settings <<Compiler <<Search Directories. I've since removed everything, but I'm still getting the same errors, both when creating a project using OpenCV's code::blocks<<file<<new<<project<<openCV project<< next<<next<<next<< and when creating a regular file just mentioning the OpenCV libraries. Sometimes, even a simple "Hello World" code won't compile because of these OpenCV problems.
3
Development / Re: which standard to use, both for building wx and CB
« Last post by Miguel Gimenez on Yesterday at 01:53:40 pm »
There is at least one show stopper in wx3.3.2: AUI panes can no longer have arbitrary size (3.3.2 regression)
4
Nightly builds / Re: The 09 April 2026 build (13831) is out.
« Last post by ThierryD on April 12, 2026, 03:56:30 pm »
Hi,

Just test last nigthly CB on WSL2 with distribution Ubuntu 24.04 ... with success with build

Documentation Ubuntu see next support about GCC (Ubuntu GCC (deb) packages) :

Ubuntu version                  available GCC versions                gcc-defaults version

25.10 (Questing Quokka)   11, 12, 13, 14, 15                       15
25.04 (Plucky Puffin)          11, 12, 13, 14, 15                      14
24.10 (Oracular Oriole)       11, 12, 13, 14                           14
24.04 LTS (Noble Numbat)  9, 10, 11, 12, 13, 14                  13
22.04 LTS (Jammy Jellyfish) 9, 10, 11, 12                            11

Many messages  appear on linux terminal during startup :

Code
codeblocks &
[1] 4298
thierry@MSI:~$ Starting Code::Blocks svn build  rev 13831 Apr  8 2026, 15:12:17 - wxWidgets 3.2.4 - gcc 13.3.0 (Linux, unicode) - 64 bit
Manager initialized
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
lib_finder: loaded
wxSmithContribItems: loaded
copystrings: loaded
Compiler: loaded
CppCheck: loaded
OccurrencesHighlighting: loaded
ToolsPlus: loaded
CodeSnippets: loaded
ReopenEditor: loaded
FileManager: loaded
AStylePlugin: loaded
ClassWizard: loaded
SmartIndentXML: loaded
BYOGames: loaded
SmartIndentHDL: loaded
SmartIndentCpp: loaded
CB_Koders: loaded
ProjectsImporter: loaded
SmartIndentPython: loaded
DoxyBlocks: loaded
SmartIndentFortran: loaded
EnvVars: loaded
cbKeyBinder: loaded
Autosave: loaded
ToDoList: loaded
Exporter: loaded
SmartIndentPascal: loaded
HexEditor: loaded
IncrementalSearch: loaded
wxSmithAui: loaded
EditorTweaks: loaded
ThreadSearch: loaded
clangd_client: loaded
Cccc: loaded
OpenFilesList: loaded
CodeStat: loaded
SpellChecker: loaded
HeaderFixup: loaded
Profiler: loaded
SmartIndentLua: loaded
RegExTestbed: loaded
FilesExtensionHandler: loaded
NassiShneidermanPlugin: loaded
MouseSap: loaded
HelpPlugin: loaded
Debugger: loaded
Abbreviations: loaded
ScriptedWizard: loaded
AutoVersioning: loaded
SymTab: loaded
CodeCompletion: loaded
BrowseTracker: loaded
ProjectOptionsManipulator: loaded
EditorConfig: loaded
Valgrind: loaded
cbDragScroll: loaded
The plugin name "wxSmithMime" does not match the name in the "wxSmith" file.
wxSmith: loaded
wxSmithMime: loaded
Cscope: loaded
Library finder plugin activated
wxSmith - Contrib Items plugin activated
Copy Strings to clipboard plugin activated
Added compiler "GNU GCC 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 TriCore (HighTec)"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "LLVM D Compiler"
Added compiler "PGI Fortran Compiler"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for Android"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for ZPU"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "LLVM Clang Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "*No Compiler*"
Added compiler "Digital Mars D Compiler"
Compiler plugin activated
CppCheck plugin activated
OccurrencesHighlighting plugin activated
ToolsPlus plugin activated
Code snippets plugin activated
Reopen editor plugin activated
File manager plugin activated
Source code formatter (AStyle) plugin activated
Class wizard plugin activated
Smart indent for XML plugin activated
BYO Games plugin activated
Smart indent for HDL plugin activated
Smart indent for C++ plugin activated
Koders query plugin activated
Foreign projects importer plugin activated
Smart indent for Python plugin activated
DoxyBlocks plugin activated
Smart indent for Fortran plugin activated
Environment variables plugin activated
Keyboard shortcuts plugin activated
Autosave plugin activated
Todo List plugin activated
Source Exporter plugin activated
Smart indent for Pascal plugin activated
HexEditor plugin activated
Incremental search plugin activated
wxSmith - Aui plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
Editor tweaks plugin activated
Thread search plugin activated
Cccc plugin activated
Open files list plugin activated
Code statistics plugin activated
Detected dict path: /usr/share/hunspell
Selected dictionary: en_US
Found dictionary: en_US
Spell checker plugin activated
Header Fixup plugin activated
Code profiler plugin activated
Smart indent for Lua plugin activated
Regular expressions testbed plugin activated
Files extension handler plugin activated
Nassi-Shneiderman diagram plugin activated
MouseSap plugin activated
Help plugin plugin activated
Debugger plugin activated
Abbreviations plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Java application'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'QT4 (shared) project'
Project wizard added for 'QT5 project'
Project wizard added for 'SDL project'
Project wizard added for 'SDL2 project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'Arduino Project'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'MSP430 Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'D source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
File(s) wizard added for 'Java source'
Scripted wizard plugin activated
Automatic versioning plugin activated
Symbol Table Plugin plugin activated
Code completion plugin activated
BrowseTracker plugin activated
Project options manipulator plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Valgrind plugin activated
DragScroll plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
Cscope plugin activated
Loading toolbar...
ClassBrowser::UpdateClassBrowserView(): No active project available.
Updating class browser...
Initializing plugins...
Class browser updated (376 msec)

(codeblocks:4298): Gtk-CRITICAL **: 15:35:35.476: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(codeblocks:4298): Gtk-CRITICAL **: 15:35:35.477: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(codeblocks:4298): Gtk-CRITICAL **: 15:35:35.478: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(codeblocks:4298): Gtk-CRITICAL **: 15:35:35.478: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(codeblocks:4298): Gtk-CRITICAL **: 15:35:35.479: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

Just one question, how is build list of available "compilers" during startup of CB ?

"Real" list traced below seem provide to Win32 environment (SDCC, Digital Mars D Compiler, Tiny C Compiler).  Not ?

Regards.
5
Has anyone here successfully set up GLAD + GLFW in Code::Blocks with MinGW? What exact steps and linker settings worked for you, and how did you fix those __imp_... errors?
6
Development / Re: which standard to use, both for building wx and CB
« Last post by killerbot on April 09, 2026, 05:18:01 pm »
can you point me to some of that chinese C++17 code ?

C++17/20/23 when correctly applied make code more easy, less buggy. I have used C++17 features for nearly 8 years now, and C++20 features for like 5 years.
And a limited set of C++23 features for like 2 years.

So I am curious to see if that code can be improved and become less Chinese :-)
7
Development / Re: which standard to use, both for building wx and CB
« Last post by Miguel Gimenez on April 09, 2026, 03:43:49 pm »
I just say that the code, being C++11, already has C++17 parts (cosmetic, fortunately).

Personally I am comfortable with C++11 and some C++17 code is like chinese to me, but obviously having more tools is good.
8
Hi,

I only change CB version with last "nigthly build" (sorry, not last but previous nigthly ...) :

Name                    : Code::Blocks
Version                 : svn-r13831
SDK Version             : 2.25.0
Scintilla Version       : 3.7.5
Author                  : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website                 : https://www.codeblocks.org
OS                      : Windows 11 (build 26200), 64-bit edition
Scaling factor          : 1.000000
Detected scaling factor : 1.000000
Display PPI             : 96x96
Display count           : 1
Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[1920,1080]; Primary

And, all seem OK today ... with Borland C/C++ 5.5.1 and it use into CB.

Mystery of computing science ?!?   GRRRRR !

You can close this topic.

Thierry D.

PS : And thank all CB developers and Xaviou to provide and generate respectively also "nigthly" binary version of CB on Debian/Ubuntu like systems (for me "*.deb" package).
9
Development / Re: which standard to use, both for building wx and CB
« Last post by killerbot on April 09, 2026, 02:13:16 pm »
Thanks, that's probably what I ran into.


I can understand we get more warnings when using more modern compilers and C++ standard.
In my professional live, I always go for 0 warnings.
But I think CB was never without warnings, so frmo that point of view I would tend to think this should not be a blocker, and we gradually can start fixing the warnings.
Or am I missing something ?
10
Development / Re: which standard to use, both for building wx and CB
« Last post by Miguel Gimenez on April 09, 2026, 01:04:46 pm »
Quote
Thoug I am not sure, I remember seeing passing by some discussion of stepping up to C++17 ?

Some code is generating warnings due to usage of C++17 features, p.e. [[falltrough]] usage in clangd_client. This change was intended to remove warnings but created others.

Quote
on the second (or third launch), nearly all panels (management, logs & others, ..)and toolbars were gone. Reactivating them manually, all seems fine again.
Restarted CB a few times, all still ok it seems.

wx3.3 changed the format used for saving the layout: if you open C::B compiled with wx3.3, close it (saving the layout explicitly or automatically) and then open C::B compiled with wx3.2 you will loose the layout.
Pages: [1] 2 3 4 5 6 ... 10