Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Development / Bug: Code::Blocks does not save empty options fields.
« Last post by MadDavid on Today at 11:02:32 pm »
I'm trying to get Code::Blocks working with LLVM CLANG.

CLANG uses clang-cl to pass linker commands onto Visual Studio's Link.exe in order to link Windows GUI project into a windows executable.
clang-cl and link.exe require .lib files to *not* have a "link library (e.g. -l)" parsing option in the command line.  When I try to compile, I get this in my build log:
Quote
clang-cl: warning: unknown argument ignored in clang-cl: '-lgdi32.lib' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-luser32.lib' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-lkernel32.lib' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-lcomctl32.lib' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-lgdi32.lib' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-luser32.lib' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-lkernel32.lib' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-lmsvcrt.lib' [-Wunknown-argument]

as well as "LNK2019: unresolved external symbol" errors for every function I'm calling from those libraries.

When I
*  go to Settings > Compiler... > [My Windows Compiler] > Other settings > Advanced options...,
*  Go to Others in "Advanced compiler options"
*  Select the contents of "Link library (e.g. -l):
*  Delete to clear the contents,
*  Click "OK", "OK"
and build the project, the project builds successfully.


Here's the bug:
When I save everything, close Code::Blocks, and reopen Code::Blocks, [My Windows Compiler] has reverted the  "Link library" field to "-l", forcing me to manually clear it again.
This is because when Code::Blocks saves default.conf, it skips over empty text fields instead of saving the empty value.
If you create a custom value in that field, then default.conf contains
Quote
               <LINK>
                  <str>
                     <![CDATA[customvalue]]>
                  </str>
               </LINK>
in the compiler initialization.  If you manually dele the cusom value, creating
Quote
               <LINK>
                  <str>
                     <![CDATA[]]>
                  </str>
               </LINK>
then Code::Blocks will happily load it as an empty field.

But every time you close Code::Blocks, the empty fields get left out of default.conf, reverting them to default values.

SOLUTION:
Please write empty fields as <![CDATA[]]> instead of skipping them.  "No value." may be important information to preserve.
2
Help / Re: Can't build code blocks: Zip file structure invalid
« Last post by Miguel Gimenez on Today at 10:35:33 pm »
Use a precompiled zip.exe, some toolkits include one.
3
Help / Can't build code blocks: Zip file structure invalid
« Last post by MadDavid on Today at 10:30:48 pm »
I'm trying to build code::blocks from source to figure out how to fix a bug that prevents LLVM from linking windows executables together.

I built the zip.exe utility from source as well, put a path to it, and tried building the CodeBlocks_wx32_64.cbp

Everything seemed to run well until it got to the post-build steps, at which point it coughs up this error:

Quote
Running target post-build steps
cmd /c if not exist devel32_64\share\CodeBlocks mkdir devel32_64\share\CodeBlocks
zip -jq9 devel32_64\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
cmd /c "cd sdk\resources & zip -0 -q ..\..\devel32_64\share\CodeBlocks\manager_resources.zip images\*.png images\8x8\*.png images\10x10\*.png images\12x12\*.png images\16x16\*.png images\20x20\*.png images\24x24\*.png images\28x28\*.png images\32x32\*.png images\40x40\*.png images\48x48\*.png images\56x56\*.png images\64x64\*.png images\svg\*.svg"
zip error: Zip file structure invalid (../../devel32_64/share/CodeBlocks/manager_resources.zip)
Process terminated with status 3 (0 minute(s), 53 second(s))
1 error(s), 30 warning(s) (0 minute(s), 53 second(s))

What do I do from here?
4
Nightly builds / Re: The 20 July 2026 build (13916) is out.
« Last post by christo on Today at 07:25:28 pm »
Hi,

AppImage for x86_64 Linux is available for download here

This requires GTK-3.0 installed.

Please give execution permission and double click or launch from terminal.

Detailed steps to run AppImage is available here

5
Help / Re: Trouble opening Code::Blocks on MacOS
« Last post by Miguel Gimenez on Yesterday at 07:31:51 pm »
That message should be harmless, it only means spell checking will not be available. Does C::B start afterwards?
6
Help / Trouble opening Code::Blocks on MacOS
« Last post by Martin on Yesterday at 04:06:52 pm »
Good day,
I downloaded Code::Blocks for MacOS (current version: Tahoe 26.5.2 ), but when I try to open it, it displays a debug report and a separate warning message,

"One or more plugins were not loaded.
This usually happens when a plugin is built for a different version of the Code::Blocks SDK.
Check the application log for more info.
List of failed plugins:
libSpellChecker.dylib"

I am pretty unfamiliar with MacOS as well as the Code::Blocks environment and I am far from tech savvy. I also tried attaching a screenshot, but I'm not sure how the "Insert Image" button works. My university has made the use of Code::Blocks compulsory for my current module, therefore it is urgent for me to resolve this issue.

Please get back to me as soon as you can. My apologies for any frustrations caused.
7
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by Martin on Yesterday at 03:36:28 pm »
I am new, I am here :o
8
Nightly builds / Re: The 20 July 2026 build (13916) is out.
« Last post by Xaviou on July 20, 2026, 08:28:55 pm »
Hi.

32 bits version for Windows (and also 64 bits version) can be downloaded from my website.
I made both a wxWidgets-3.2.10 and wxWidgets-3.3.2 linked versions

Debian Trixie (64 bits) and Bookworm (32 and 64 bits) can be installed from my repo
The corresponding unsigned deb files can also be downloaded from the website page linked above.

Ubuntu-22.04, 24.04 and 26.04 versions can be installed from my ppa (they are available for both amd64 and arm64 architectures).

Regards
Xav'
9
Nightly builds / Re: The 20 July 2026 build (13916) is out.
« Last post by killerbot on July 20, 2026, 03:21:17 pm »
next steps:
  • step up to wx 3.3.3
  • step up to gcc16
10
Nightly builds / The 20 July 2026 build (13916) is out.
« Last post by killerbot on July 20, 2026, 03:20:39 pm »
We switched to gcc 15.2.0 (on 09 April 2026) --> download the new wx/mingw dll's see link below

Get the compiler we use here : https://github.com/brechtsanders/winlibs_mingw/releases/download/15.2.0posix-14.0.0-ucrt-r7/winlibs-x86_64-posix-seh-gcc-15.2.0-mingw-w64ucrt-14.0.0-r7.7z

Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll(s) for Code::Blocks : https://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/wxmsw33u_gcc_cb_wx332_2D_gcc1520-mingw64.7z
A link to Mingw64 dll's needed by Code::Blocks : http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/Mingw64dlls15.2.0.7z


The 20 July 2026 build is out.
  - Windows :
   http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/2026/CB_20260720_rev13916_win64.7z
  - Linux :
   none

The current SDK version is : 2.25.0

Resolved Fixed:

  • SDK: Fix issue loading workspaces with wxWidgets 3.3. This may fix ticket #1605.
  • implemented FR from here: https://forums.codeblocks.org/index.php?action=profile;area=showposts;u=54114 to allow changing the line spacing in editors
  • autotools: fix build error on Windows (ticket #1608)
  • SDK: Show field name of unknown global variables (ticket #1607, thanks homertp).
  • Compiler: Do not disable project options for unknown compiler (ticket #1606, thanks homertp).
  • wxSmith: Add wxCommandLinkButton to the Standard palette.
  • wxSmithAui: Fix gripper selection in wxAuiManager adding missing "break".
  • SDK: Fix error window when installing plugins in a user data directory (ticket #1610, thanks homertp).
  • Codeblocks: Fix wx3.3.0 asserts caused by wxauibook changes that no longer allow access to wxTabCtrls
  • applied a couple of fixes to compile wxCustomControls on wx3.3 and to eliminate compiler warnings
  • wxContribItems: Make KWIC/BmpCheckBox actually work and fix integration in wxSmith.
  • wxSmith ContribItems: Fix Led and StateLed size and inconsistencies.
  • clangd_client Fix crash in parser.cpp when there is no active process and correct warnings re: json.cpp macro spacing
  • projectmanager: Avoid Windows/CodeBlocks crash caused by rapid Freeze/Thaw calls when closing large workspaces.
  • wxContribItems: Fix lcdwindow initial size.
  • CodeBlocks: Fix the unexpanded editor pane when using wx 3.3
  • FileManager: Fix assertion "page must be a child of the notebook".
  • clangd_client: support refactoring using clangd (textDocument/codeAction)
  • SDK: Increase fold margin width in the editor and change it with scale factor.

Regressions/Confirmed/Annoying/Common bugs:


    Pages: [1] 2 3 4 5 6 ... 10