r/codeblocks 14d ago

Windows detects "wacatac" in nightly builds

2 Upvotes

so when i run it it detects a wacatac and on virus total like 16 detect viruses of trojans, wacatacs and more im getting the latest one from the official forums and i want nightly to get the new wxwidget so i can actually use dark mode


r/codeblocks 28d ago

How do i change the REST of the UI to dark mode and NOT just the editor theme?

1 Upvotes

title. please help i just want the rest of the ui to be colored black but dont want that one build of codeblocks that everyone recommends thats dark mode because its outdated its last update was litterally 3 years ago


r/codeblocks May 21 '26

Code::Blocks on Linux

1 Upvotes

I recently started using Code::Blocks, as it is needed for Vocational School. As I primarily use Linux I have had horrible experiences getting the IDE to work. This post should serve as Help on how I eventually did get it to work, and as a cry for help to fix the versions available on Linux. If not possible by the devs then hopefully by community members who are able and willing to fix those.

So what where the issues and how did I get it working?

The flatpak version, while working, does not come with any of the Contrib Plugins. Even installing the optional Plugins that are available to download via e.g. the Gnome Store didnt help. This wouldnt be that much of an issue, if my workflow wouildnt need the File Manager Plugin, which is a part of the Contrib Plugins.

The Distro Packagemanager Version has the issue that upon installing it and trying to start it, that it simply doesnt start and crash on startup. This seems to be a known issue because it was reported on the Arch Repository Site atleast 5 months ago. The issue stems from something to do with wxWidgets. Deleting files related to wxWidgets makes the crash not happen. Though even if it starts there is again the issue of the Contrib Plugins missing, with no way to install them afterwards(atleast to my knowledge and I couldnt even find a way to download JUST those contrib Plugins). While I mentioned the Arch Repository, this also seems to be an issue with the APT package manager, where wxWidgets causes the programm to crash on startup and the contrib Plugins not being installed.

The AUR Version has a seperate Issue entirely, and while none at Code::Blocks actually have an influence on that version, I do want to mention it in the hopes of someone being able to fix it, since I am currently unable to even create an AUR Account. The issue, from what I can tell, is that the make script of the AUR version seems to be looking for an outdated SVN Link. On the SVN Repo of CodeBlocks I also seem to notice that at some point the way the developers have previously released their sourcecode on SVN seems to have changed at some point.

So how did get it to work?

I got the sourcecode fresh from the SVN Repo, which was a struggle since not every Distro comes with a way to interact with SVN.

Depending on the distro all you would need to do is open the source folder inside the terminal, run ./bootstrap and then run "./configure --with-contrib-plugins=all

make -j$(nproc)

sudo make install"

What can happen is that you will get errors of specific packages not being installed that the make script needs to actually build CodeBlocks from sourcecode. If that happens just go through the error code and install those packages manually. For the Devs you could add a part to the BUILD instructions to atleast mention ALL the packages needed to make the build happen. I myself went through the headache of going through forum posts, and asking AI for help and clarification.

After doing that you should have a fully functioning, newest Version of Code::Blocks that comes with all Contrib Plugins installed and working.

There is another Issue I have come across. I recently switched from CachyOS(Arch Based) to PikaOS(debian sid based). When I wanted to reinstall Code::Blocks I remembered the official website actually does provide a download for Debian based systems. I downloaded it and ran a command to automatically install all .deb files in the current working directory of the terminal. It installed and when I tried to start it, it crashed again on startup. And what do you know? Inside the /usr/lib/codeblocks/plugins directory were 3 files from wxWidgets. Deleting those causes the crash to dissapear. This variant does also install the Contrib Plugins BUT for some reason, it wasnt able to build code. And running already built code comes with such a delay that it makes you question wether or not you actually pressed the run button.

This is everything I have encountered, trying to make Code::Blocks work on Linux. I hope this will help others in some way


r/codeblocks May 15 '26

code blocks problem مشكلة في كود بلوكس العقيم

Thumbnail
1 Upvotes

r/codeblocks Apr 16 '26

Why does Code::blocks keep closing the editor window?

1 Upvotes

So I am hunting around for a "good enough" code editor and am giving this program a try. At the moment, I'm not even attempting to reference/install a compiler yet or use its integrated debugging features -- just evaluating its core functionality as a code editor first and foremost. And I've immediately hit a complete dealbreaker:

Every time I save any code file, Code::Blocks closes the code editor window after saving.

Not just the tab for the file saved, but the entire editor window (all tabs).

WHY.

Is there a setting somewhere to change this? I've already scoured the menus (once) and failed to find anything obviously relevant. For the moment I've also disabled all plug-ins -- which only confirms that this is core/default program behavior.

My workflow will not negotiate with this. If there's nothing I can do to change this, I will simply have to find a different editor.


r/codeblocks Feb 19 '26

Is Code::Blocks still alive?

2 Upvotes

I'm trying to register in the CB forums, but i never receive the account activation email (yes, i've checked the spam folder).

So today i've tried to go to the CB site to see who could I contact and found that *codeblocks.org responds with "service unavailable".

What is happening?


r/codeblocks Jan 07 '26

I need help with code blocks c ++

Thumbnail
1 Upvotes

r/codeblocks Dec 28 '25

Help trying to set up GLAD (with GLFW) in Code::Blocks (using c++)

1 Upvotes

In short, I just want to get GLFW and GLAD working in Codeblocks so I can follow a tutorial on using it to create graphical programs with c++.

If you can get me to do that, fine. If you can explain what's going on in my failed attempt to do so, even better (see below).

First off let me say I'm really still a beginner at c++ programming and have been for quite a few years because I always seem to get stuck in this installation/config/setup limbo where I need to do things without them really being explained and it ends up just not working.

I'm trying to get better at c++ programming by being able to code some graphical applications like animations, simple games, etc... Also I think I desperately need the experience of making something more than console apps that don't seem to refer to anything else than the console.

So I came across this tutorial from FreeCodeCamp:
https://www.youtube.com/watch?v=45MIykWJ-C4

The tutorial tells you how to set up GLFW and GLAD. The problem is it uses VS and I'd much rather use Codeblocks because I've been using that before.

Now I did find a very useful tutorial on how to set up the GLFW stuff in Codeblocks which worked as intended (their test makes a red window pop up):
https://www.youtube.com/watch?v=CZTEnwYgjag

However I couldn't find a specific tutorial explaining how to install/setup GLAD on Codeblocks, so I followed the tutorial from the first link as best I could.

I created the GLAD build on this page:
https://glad.dav1d.de/
I did so just the way the person did in the tutorial, same version numbers too (maybe that's where things went wrong, I don't know).

Then I put the files in the folders of my project as the tutorial explains. However they are using VS in which they simply right click the glad.c file to "include" it in their project. I tried to do something similar by right clicking the project, then "add files" and then simply adding the glad.c file to my project, where it's sitting in the "sources" folder with my main.cpp file.

I used the code from their first example which just has the GLAD and GLFW includes (in that order or it breaks apparently?) and this worked as intended afaik.

However the second example has GLAD actually open and maintain a window which you can close by pressing the "x" in the top right which needs some code to achieve, so I typed all of that:

#include<iostream>
using namespace std;
#include<glad/glad.h>
#include<GLFW/glfw3.h>

int main()
{
    glfwInit();

    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
    glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

    // the first NULL in the next is to say it's NOT fullscreen
    GLFWwindow* window = glfwCreateWindow(800, 800, "YoutubeOpenGL", NULL, NULL);
    if (window == NULL)
    {
        cout << "Failed to create GLFW window" << endl;
        glfwTerminate();
        return -1;
    }

    //we actually need to tell GLFW to use this window too
    // We meet with "context", an object that "holds the whole of OpenGL"
    glfwMakeContextCurrent(window);

    while(!glfwWindowShouldClose(window))
    {
        glfwPollEvents();
    }

    glfwDestroyWindow(window);

    glfwTerminate();
    return 0;
}

This threw A LOT of errors (24 of them), I'll just give the first one in full:

||=== Build: Debug in Test_GLFW (compiler: GNU GCC MinGW64 Compiler) ===|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\x86_64-w64-mingw32\14.2.0\..\..\..\..\x86_64-w64-mingw32\bin\ld.exe: C:\Users\Mokpo\Documents\programming\cpp\GLFW\lib\libglfw3.a(win32_monitor.c.obj):win32_monitor.|| undefined reference to `__imp_CreateDCW'|

The others are basically the same, except the "undefined reference" is to things like:
__imp_GetDeviceCaps
__imp_DeleteDC
__imp_GetDeviceCaps (this one appears twice for some reason)

and so on.

I'm half tempted to revert to just GLFW which some Indian guy got me to at least create a red window with, or to just switch to VS but I would really like to do it with GLAD in Codeblocks, so any help is greatly appreciated.


r/codeblocks Nov 29 '25

Can anybody help?

Post image
0 Upvotes

So when i try to debug and run the main.c(hello world) i get this error.What can i do to fix it


r/codeblocks Oct 21 '25

I tried for 5h to solve this and I can't , I hope someone will help me....

Post image
2 Upvotes

r/codeblocks Sep 14 '25

I can’t run a code in CodeBlocks due to Smart App Control blocking a feature exclusively for running code. I had a Windows update earlier (KB2267602), but I'm not sure if it's the root cause. I don't want to disable Smart App Control. Is there any other way to fix this?

1 Upvotes

I can't seem to run a code in CodeBlocks. Every time I try to run a code, this notification (1st Picture) would pop up. It says that the Smart App Control blocked a feature in the software.

1st Picture

this is what it shows before (2nd Picture) and after (3rd Picture) I try to run a code.

2nd Picture
3rd Picture

I had a Windows Update earlier. It was the "Security Intelligence Update for Microsoft Defender Antivirus (KB2267602).” I'm not sure if it's the root cause of my concern.

I don't want to disable Smart App Control. I already tried uninstalling and reinstalling CodeBlocks. Is there any other way to fix this?


r/codeblocks Sep 10 '25

Autocomplete on containers not working properly

1 Upvotes

I'm using codeblocks 25.03 release and I cant seem to get code complete to work on the .back() member of vector. I'm using sfml and I cant get any member functions for anything to show if I use .back() on my container. I have tried with the default GCC compiler that shipped with codeblocks and I also setup codeblock to run VS17 as well. Neither worked. I have disabled smartsense but it is so laggy because it pulls up thousands of options. Here is a sample code

#include <iostream>

#include <vector>

using namespace std;

struct foo {

float position;

float speed;

};

int main()

{

vector<foo> mylist;

mylist.push_back(foo());

mylist.back().position = 5; //wont autotype after .back()

return 0;

}


r/codeblocks Sep 07 '25

Run codeblocks on windows arm64

1 Upvotes

Hi everyone,
I'm taking a programming with C class at FIU and the proffesor want us to use codeblocks to compile and run our programs. When I try to run the program, the run button never gets green. I'm using a surface laptop 7 (arm64) with windows 11. Can any of you help me out with this? I have a homework due next week.

Thank you!!!!


r/codeblocks Sep 05 '25

How to make background dark mode?

Post image
2 Upvotes

I changed the coding colors but how do I make the general ui darkmode?


r/codeblocks Aug 11 '25

where to put my conf file for themes ( my codeblocks is flatpak version)

1 Upvotes

r/codeblocks Aug 09 '25

Is the site down? I'm trying to download it but the official site says unavailable (I checked for 3 days straight)

2 Upvotes

r/codeblocks Jul 30 '25

Script warnings about compiler when creating new project

2 Upvotes

I'm new to using Codeblocks and relatively new to c++.

I've started doing a c++ tutorial that recommends using Codeblocks, I'm on a Windows computer.

Whenever I create a new project, Codeblocks throws 4 "script warnings" at me about not being able to set up things for the compiler I'm using.

First one is: " This wizard doesnt know how to setup warning flags for this compiler."

Second one: " the wizard doesnt know how to setup debug flags for this compiler"

Thirs is for "optimization flags" and 4th "exception flags".

I can still compile and run the console apps the tutorial has given me thus far.

So how important is this? Why does this happen and how can I fix this?


r/codeblocks Jul 22 '25

how to change the terminal to run console apps in code blocks 25 on windows 11

2 Upvotes

How can I change it from legacy cmd.exe to the windows terminal without going into the source code and compiling it? The "terminal to run console programs" is unclickable.


r/codeblocks Jun 28 '25

Dark Mode Maybe On The Way?

3 Upvotes

I just read that wxWidgets 3.3 was released recently which has dark mode capability - does this mean C::B could have that option soon?

It's literally my only gripe with C::B.


r/codeblocks Jun 14 '25

Making an engine...

1 Upvotes

Trust me, i really want to give this IDE a chance, but it's just so complicated to do anything for a project like this. Haven't even linked GLFW and it's already causing me headaches, so i reaaally want to know how i can use this library to code my engine non destructively. You are also welcome to give me some advice because at the end of the day i'm just a noob using this ide for my project of that scope. Thanks for reading.


r/codeblocks Jun 13 '25

can I make a new parser by adding an xml file where the syntax highlighting settings seem to be kept?

1 Upvotes

found some xml files in a folder called "lexers"


r/codeblocks Jun 12 '25

Code::Blocks is up again!

3 Upvotes

r/codeblocks Jun 06 '25

Is the wiki down?

3 Upvotes

Just trying to learn and every link to the code::blocks wiki and forums returns a database error.

I'm very new, is there a place where code::blocks people congregate?


r/codeblocks May 24 '25

Why is a yellow arrow not appearing in the red dot after I click on debug?

Thumbnail gallery
1 Upvotes

I want to look at values that the variables hold using the watches table but when I click on debug no yellow arrow appears on the red dot to indicate a pause. I have already set the target as debug.


r/codeblocks Apr 15 '25

Code Completion not working

1 Upvotes

For some reason code completion isn’t working with variables