Recent Posts

Pages: 1 ... 3 4 5 6 7 [8] 9 10
Help / Re: CodeBlocks Crashing
« Last post by MrBadAttitude on September 15, 2021, 06:27:11 am »
I can't reproduce the issue; SortTemplates() did crash some time ago (see this thread, but it was related to a change after 20.03 was released.

Can you try a recent nightly?. Just download the three zip files and extract them in a folder of your choice. It can coexist with 20.03.

I was able to use it with the nightly version the only problem was that the GNU GCC Compiler was not detected(I am sure I can fix this problem). Rather than using an unstable version of a software I just gonna use the 17.12 version which is more than enough because the C and C++ programming tutorials that I am watching are using much more older versions of CB. But could you please let me know where I can report bugs so that I can report it and let it be fixed later on?

Thank you.
I have uploaded a new NSIS x64 installer with the changes to hopefully resolve the issues, with the exception of the Additional page icons. I have updated the Installer_Pages.odt to show the updated and new pages in this release.

My feedback on your feedback is:
1. We only use NSIS, there is no need for an ISS based installer, we won't ship both. The ISS script is a relict from very old times
    - NSIS was superior 10 years ago compared to ISS, but ISS has improved a hack of allot and is up to the job now. ISS apart from installing the components via a selectable list is allot easier to follow and program and enhance compared to NSIS based on my usage of both over the last few months.
    - ISS uses pascal instead of a what appears to be some custom programming language that is not easy to understand or use compared to normal programing languages.
    - There are ISS IDE's and GUI's to make it easier to create the script. But there is no specific NSIS IDE that make it easier to update/change the script.
    - Both are not very good for creating a new GUI from scratch, but ISS has a bunch of templates you can use that make it a bit easier.

    I agree to only ship one, but going forward the ISS script will be allot easier to maintain IMHO.

2. The logo is from CodeBlocks Version 1 which is around 20 years ago...?! :-) So it should be updated
    - Fixed: rotated the current logo and cropped it and moved some of the text around, added text.

3. Did you try to run the installer in an unattended mode w/o GUI? this must work.
    - C::B 20.03 - silent install pops up the splash screen
    - Fixed/Updated:
        a. Installs in C:\Users\andrew\AppData\Local\Programs\CodeBlocks if run as normal user with /S, but now does not pop up the spash dialog
        b. Fixed admin unattended install for C:\program files.\
        c. Updated the script to define MULTIUSER_INSTALLMODE_COMMANDLINE

4. It would be nice if one could skip the creation of shortcut (but its not a must)
    - Fixed:
        This is in the custom setup like in the 20.03 installer from what I can see. It is not easy to find.
        Updated script for newly added shortcuts from missing apps.
    - Fixed:
        In the new installer if you run the custom install you can also select on the "Choose Start Menu Folder" there is a tickbox for "[ ] Do not create shortcuts" under the start menu folder list.
        Updated script for mising macros.

5. Under additional icons: If I un-select all, what is actually created in that case? For me its nothing, so why are these on the "Additional" page?
    - Need more info.

6. The Un-installer did not work well for me. It left tons of files, including all plugins and the executable.
    - Problem:
        If you install as admin for all users and then run the installer as a user the files are shown as to be removed on reboot, but they are not.
    - Fix/work arround:
        If you install for all users then you need to run the uninstaller as admin otherwise it will pop up and tell you to run the uninstall again with admin rights.
        Added support for detecting if C::B was allready installed and by privelege in order to either ask the user to uninstall the previous version or run the installer as admin or as a normal user.
        Added support for uninstalling 20.03 before installing update on x64 system as they are in different directories and may use different registry uninstall kys (HKLM or HKCU depending on install rights used)
    - Hopefully I have covered the different options so files are not left, but if they are can you let me know how the previous version was installed (and if it was 20.03) and how the new installer was run (admin or normal user rights) and where the files that were left are (C:\program files, C:\program files (x86), C:\users......).

7. But, for people w/o internet connection (and these are many) there should also be a  package that has our default compiler bundled. This is also related to running in  unattended mode for admins and alike.
    - Updated the download compiler page to not be shown if is no internet connection.
    - Created a new page to install the following files if they exist (if they both don't exist the page is not shown)
            * i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
            * x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
          They files are available from:
          The new page could be modified in the future to add more files or use the files from a text file if the text file exists in the same directory, but someone else can do this.

     - I do not like bundling the compiler as this causes newbies to think that C::B is the compiler........wrong!!!

     -  The way MINGW is bundled in 20.03 is not documented w.r.t. what goes into the "\MinGW" directory that the 20.03 nsi script uses. This change makes it consistent in that the files are sourced from the mingw release and are not modified in any way.
    - The new page installs the compilers in C:\mingw32 or c:\mingw64 by default, which is allot better than the 20.03 default directory. These two directories are also the default mingw installer.

Let me know if there are any other changes or mods or updated or queries etc etc.
Updated release now available for x64.

The main changes are with the installer and manual incorporation of SF ticket 1135 patch.

The installer changes are:
    30. Install and uninstall checks to see you are running as admin or normal user so the install/uninstall uses the same priveleges as last one.
    31. Modified nsi to only show the download compiler page if an internet connection is detected.
    32. Modified nsi to support installing the following if they are in the same directory as the installer:
            * i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
            * x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
          These can be downloaded from

The NSIS changes are incorporated into the Installer_Pages.odt file, which you can open in MS Work or LibreOffice.
Using Code::Blocks / Re: How do I add new downlaoded header files to codeblocks?
« Last post by stahta01 on September 15, 2021, 03:34:16 am »
Add the folder to the project search path.
Post the Code::Blocks build log to help us help you.

How to add folder to the project search path:

Project -> Build Options
Tab: Search directories
Sub-Tab: Compiler
Button: Add
Button that looks like an folder
Enter path that contains folder
If asked to keep this path as relative? Click yes
Click OK if needed

Tim S.

Using Code::Blocks / How do I add new downlaoded header files to codeblocks?
« Last post by JaydenFernandez on September 15, 2021, 01:48:28 am »
I want to add std_lib_facilities.h to codeblocks, but I don't know where to put it.  Even if I think I placed it in the right folder, it still returns a 'fatal error' because it can't locate the header file, when I include it in my program.

I also want seed_randint() to be a function in my program, but it doesn't show up in scope, so I need to download a header file for that too.
Help / Re: Environment error
« Last post by takashi_85 on September 15, 2021, 01:14:05 am »
I came down to this , i think this FixPathSeparators was called when it shouldn't be called!!. May be after compiler-->forceFwdSlashes was set to true for some reason.
Maybe C/C++ developers here can help!.
void CompilerCommandGenerator::FixPathSeparators(Compiler* compiler, wxString& inAndOut)
    // replace path separators with forward slashes if needed by this compiler
    if (!compiler || !compiler->GetSwitches().forceFwdSlashes)

    size_t i = 0;
    while (i < inAndOut.Length())
        if (inAndOut.GetChar(i) == _T('\\') &&
            (i == inAndOut.Length() - 1 || inAndOut.GetChar(i + 1) != _T(' ')))
            inAndOut.SetChar(i, _T('/'));
Help / Re: Environment error
« Last post by takashi_85 on September 15, 2021, 12:13:26 am »
C:\MinGW/bin/gcc.exe should be C:\MinGW\bin\gcc.exe

Slashes are not valid in path strings in windows environment!! , this may have leaked from linux or Mac code !!.
As a temporary work around you can compile your code manually with command line  :-\ .
I confirm that i have the same problem with "codeblocks-20.03mingw-32bit-setup.exe" package under windows 7 32-bit.
Although it's a simple misconfiguration-or bug- but it's very nasty, as it prevents users from compiling "default template C++ code" after a fresh install !.
Help / Re: The compiler's setup (GNU GCC Compiler) is invalid,
« Last post by takashi_85 on September 14, 2021, 11:38:24 pm »
If you didn't notice the path to the compiler executable is formed with both "\" backslashes and "/" slashes !!, i think it's a bug in this version, as i didn't find anyway to alter this in compiler options.
"/" are used in linux and Mac not windows !.
Project/Target: "vector_word_output - Debug":
  The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
  Probably the toolchain path within the compiler options is not setup correctly?!
  Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\Program Files\CodeBlocks\MinGW/bin/mingw32-gcc.exe', but failed!
Plugins development / Manager:: help
« Last post by dvserg on September 14, 2021, 10:59:29 pm »

I write self plugin for CodeBlocks, and have one problem.
How i can get access to wxSmith (WXS) Visual IDE Editor selected item(control) via Manager:: or any other global variable ?

I add self Toolbar to the IDE, and want call from them Visual any items functions.

Maybe i must use cbEditor or Events (throw in IDE toolbar and catch in wxSmith item )?
Any idea please? Thanks.
Using Code::Blocks / Encoding glitching
« Last post by Piotr Grochowski on September 14, 2021, 03:32:52 pm »
I only use the CP437 encoding in code blocks, but the editor still lets me put non-CP437 characters. This is blatantly a glitching, because if it were actually CP437 internally, it wouldn't have been possible for non-CP437 characters to occur in memory. Worse yet, when saving, it automatically converts the file to UTF-8, which is the last encoding I'd ever like to use. HOW DO I GET TRUE 8-BIT EDITING?
Pages: 1 ... 3 4 5 6 7 [8] 9 10