Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
You can go to C::B menu Setting/Compiler and inspect "Global Compiler Settings"/"Toolchain executables" for "Selected compiler"
52
Using Code::Blocks / Problem with standalone exe
« Last post by bad_terminal on October 26, 2025, 10:31:14 pm »
Good evening,

So I've been using CodeBlocks for a number of years while attempting to learn C++. However, after a recent re-installation of 20.03, I noticed that while my programs compile in the editor, the exe's they produce are smaller than usual (215kb v 2487kb), and the standalone exe will not run.

If my understaniding is correct, it's because certain compiler flags weren't set.

Now, whilst I appear to have remedied this, what would cause this to happen? Are those flags not set as default with a fresh installation? I installed 20.03 the first time so long I don't remember having to set flags.

For anyone else having the same problem , the flags I had to set were -static -static-libgcc -static-libstdc++   in the compiler flags section

Also, in the global compiler section. there are numerous things to 'set' eg, C++ compiler , linker for dynamic libs, linker for static libs, resource compiler, make program.

I've set all these to x86_64-w64-mingw32-g++.exe, but really have no idea what any of them are meant to be set to, and/or what the effects of using different (but similarly named) compliers would have.

Please advise.
Thankyou.

So several days and no replies? A veritable hive of activity! Surely somebody knows what all those different 'compliers' are and what the difference is?
53
Nightly builds / The 25 October 2025 build (13754) is out.
« Last post by killerbot on October 26, 2025, 06:50:03 pm »
We switched to gcc 15.1.0 (on 23 May 2025) --> 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.1.0posix-12.0.0-ucrt-r1/winlibs-x86_64-posix-seh-gcc-15.1.0-mingw-w64ucrt-12.0.0-r1.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/wxmsw32u_gcc_cb_wx328_2D_gcc1510-mingw64.7z
A link to Mingw64 dll's needed by Code::Blocks : http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/Mingw64dlls15.1.0.7z


The 26 October 2025 build is out.
  - Windows :
   http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/2025/CB_20251026_rev13754_win64.7z
  - Linux :
   none

The current SDK version is : 2.25.0

Resolved Fixed:

  • Clangd_client: Apply Christo patch #1559 for makefiles (Thanks christo)
  • BrowseTracker: Apply JumpTracker.h assert fix (Thanks Christo and Letartare)
  • dragscroll: version 1/4/15 251020 Remember the original (current) mouse position for other events to use.

Regressions/Confirmed/Annoying/Common bugs:


    54
    Thanks. Can we dynamically change the outer window size? Well, we still need to find a way to fix such issue, though this is not a big issue.  :)
    55
    General (but related to Code::Blocks) / Re: forums.codeblocks.org Cert has expired
    « Last post by ollydbg on October 26, 2025, 08:25:13 am »
    New cert has an expiry date of:
    - Thu, 22 Jan 2026 15:46:40 GMT

    Thanks, I will report to our site admin about this.
    56
    You seem to have two paths for compilers :
    C:\mingw-w64\mingw64
    and
    C:\Program Files\CodeBlocks\MinGW
    Both are used in the working test, for compiling (two sub \include paths) and for linking (two sub \lib paths).
    Normally, you should have only one \include path and one \lib path. Two paths may give conflicts, especially if they are different.

    The second compiler path, is, I suppose, for the installed compiler distributed with Code::Blocks (winlibs 14.2). How did you obtain the content of C:\mingw-w64\mingw64 ?
    And how is configured your "GNU GCC Compiler" and your "GNU GCC MinGW64 Compiler".
    As I saided previously, it looks like you have two compilers installed in two different places. But I'm not on your PC and cannot check this for you.

    I don't have access to that computer at the moment, so I'll have to check. However, I usually download Codeblocks from its website or install it via Chocolatey, and I've never had this kind of problem.
    On my main computer, I installed Windows 11 25H2 via VirtualBox and Codeblocks via Chocolatey, and it compiled the same code with the correct 64-bit compiler without changing any settings, as it should.

    Code
    -------------- Clean: Debug in Test (compiler: GNU GCC Compiler)---------------

    Cleaned "Test - Debug"

    -------------- Build: Debug in Test (compiler: GNU GCC Compiler)---------------

    g++.exe -Wall -fexceptions -g  -c C:\Users\user\test\main.cpp -o obj\Debug\main.o
    g++.exe  -o bin\Debug\test.exe obj\Debug\main.o   
    Output file is bin\Debug\test.exe with size 109.55 KB
    Process terminated with status 0 (0 minute(s), 3 second(s))
    0 error(s), 0 warning(s) (0 minute(s), 3 second(s))
    57
    You seem to have two paths for compilers :
    C:\mingw-w64\mingw64
    and
    C:\Program Files\CodeBlocks\MinGW
    Both are used in the working test, for compiling (two sub \include paths) and for linking (two sub \lib paths).
    Normally, you should have only one \include path and one \lib path. Two paths may give conflicts, especially if they are different.

    The second compiler path, is, I suppose, for the installed compiler distributed with Code::Blocks (winlibs 14.2). How did you obtain the content of C:\mingw-w64\mingw64 ?
    And how is configured your "GNU GCC Compiler" and your "GNU GCC MinGW64 Compiler".
    As I saided previously, it looks like you have two compilers installed in two different places. But I'm not on your PC and cannot check this for you.
    58
    General (but related to Code::Blocks) / Codeblocks Freezes on spalsh
    « Last post by Proteknickz on October 25, 2025, 08:08:15 am »
    Hi all, I'm new to forum as you can probably see but not to Codeblocks, Firs of all my Environment is:

    EndeavourOS: 6.12.53-1-lts (64-bit)
    Plasma
    Wayland

     My issuse is I installed Codeblocks from the Repository using the Codeblocks-svn, every thing went great with no errors as far as i could see, but codeblocks freezes on the splash screen, took me 4 days to figure it out why this was happening which it came down to 3 plugins were halting it on load, which are:

    if i remove them temporarily it loads fine but no WxSmith.
    libwxsmith.so
    libwxSmithAui.so
    libwxsmithcontribitems.so

    I can see its todo with the wxWidges, I just wanted to see if i could get it working with them :), It would be great if i could, I have also made a post on the EndeavourOS Forums with no avail, oh yeas Codeblocks Version is: SVN - 13754 BUILD: oct 23 2025 and WXWIDGETS: 3.2.8 - GCC: 15.2.1.

    Quote
    Name                   : Code::Blocks
    Version                : svn-r13754
    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                     : Linux 6.12.53-1-lts x86_64
    Desktop environment    : KDE
    Scaling factor         : 1.000000
    Detected scaling factor: 1.000000
    Display PPI            : 96x96
    Display count          : 2
    Display 0              : XY=[2560,0]; Size=[1080,1920]; Primary
    Display 1              : XY=[0,480]; Size=[2560,1440];

    wxWidgets Library (wxGTK port)
    Version 3.2.8.1 (Unicode: wchar_t, debug level: 1),
    compiled at Jun  7 2025 18:01:02

    Runtime version of toolkit used is 3.24.51.
    Compile-time GTK+ version is 3.24.49.

    Hope this help you in helping me :) heh!

    Proteknikz :D.
    59
    General (but related to Code::Blocks) / Re: forums.codeblocks.org Cert has expired
    « Last post by Wkerry on October 25, 2025, 07:30:56 am »
    New cert has an expiry date of:
    - Thu, 22 Jan 2026 15:46:40 GMT


    60
    General (but related to Code::Blocks) / Re: forums.codeblocks.org Cert has expired
    « Last post by ollydbg on October 25, 2025, 12:47:11 am »
    The issue is fixed by site administrator.
    Pages: 1 2 3 4 5 [6] 7 8 9 10