Recent Posts

Pages: 1 2 3 4 5 6 [7] 8 9 10
61
Using Code::Blocks / Re: Dark Mode
« Last post by FrankPeelo on November 18, 2025, 02:22:02 pm »
I got editing with a dark background. There is still a lot of white or light grey on the screen - menu bars etc. - but if the editing window is dark at least I can hope that the light is not being focussed on my macula. Especially if I double-click the editor file tab to make the editor window bigger.

Biggest problem is, to know what you want. Last time I coded with a dark background, the text was green because that was the colour of the phosphor, so figuring out what colours I wanted was awkward. (In the end I copied some of Notepad++.)

First thing I tried, not sure I needed to do this but... it was the advice at
https://stackoverflow.com/questions/69165313/how-to-change-or-add-dark-theme-to-codeblocks
So that starts with downloading a color_themes.conf from
https://gist.github.com/yzhong52/6852140faa233408de67
and installing it.

After that, I was able to select a theme in Settings | Editor | Syntax highlighting.

But then I went changing colours that I didn't like... in the end, I think I changed most of the colours which is why I'm not sure that I needed the color_themes.conf file. I had Notepad++ on another machine, and I mostly copied the colours from the theme I was using there. I had the GIMP (Other Apps Are Available) to pick colours off the screen and tell me what they were in hex. In C::B, in the syntax highlighting settings, I click Default or Comment or whatever it is, click the Foreground colour on the right, click Custom, put the hex number in.

Maybe there would be an easier way that experts would know, but that was enough for me. I'm on Linux so I don't think the "experimental dark IDE for Windows" link would be for me.
62
Using Code::Blocks / Re: lSdl3 and lSdl3main not found
« Last post by Miguel Gimenez on November 18, 2025, 01:21:16 pm »
You used a "3" (number three) instead of an "S" (letter) in both file names, please check your typing.

Just add "SDL3" and "SDL3main" to the libraries list (the left one), and add SDL3 location to the compiler's and linker's search directories.

If you still have compilation problems read this.
63
Using Code::Blocks / Re: lSdl3 and lSdl3main not found
« Last post by JPF12141999 on November 18, 2025, 12:18:55 pm »
Unless I misunderstood, you can see in my post I tried that word for word already and got the error anyway.Maybe I should just watch on YouTube a tutorial that tells me how to make a 2D game with Code::Blocks without SDL3?
64
Using Code::Blocks / Re: lSdl3 and lSdl3main not found
« Last post by Miguel Gimenez on November 18, 2025, 09:13:06 am »
Quote
include "-l3DL3" and "-l3Dl3main"

Have you tried "-lSDL3" and "-lSDl3main"?
65
General (but related to Code::Blocks) / Incremental compilation for Code::Blocks
« Last post by weixing1531 on November 18, 2025, 03:43:31 am »
Simply Fortran support it. How to set for Code::Block 25.03?
66
Using Code::Blocks / lSdl3 and lSdl3main not found
« Last post by JPF12141999 on November 18, 2025, 02:04:39 am »
Hi everyone,

When using the 3/14/2020 version of Code::Blocks and the 3.2.26 version of SDL3, I get told when I type in the linker settings to include "-l3DL3" and "-l3Dl3main", that it cannot find those things even though when I Google for help with SDL3 and Code::Blocks the results tell me specifically to type those things in the linker word for word.

This is my program so far:

Code
#define SDL_MAIN_HANDLED
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <iostream>

int main(int argc, char* args[]) {
    SDL_Window* window = nullptr;
    SDL_Renderer* renderer = nullptr;

    if (SDL_Init(SDL_INIT_VIDEO) < 0) {
        // Handle error
        return 1;
    }

    window = SDL_CreateWindow("My 2D Game", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOW_VULKAN);
    if (!window) {
        // Handle error
        SDL_Quit();
        return 1;
    }

    renderer = SDL_CreateRenderer(window, "Render");
    if (!renderer) {
        // Handle error
        SDL_DestroyWindow(window);
        SDL_QuitEvent();
        return 1;
    }

    bool quit = false;
    SDL_Event e;

    while (!quit) {
        while (SDL_PollEvent(&e) != 0) {
            if (e.type == SDL_EVENT_QUIT) {
                quit = true;
            }
        }

        SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF); // White background
        SDL_RenderClear(renderer);

        // Draw game objects here (e.g., textures, shapes)

        SDL_RenderPresent(renderer);
    }

    SDL_DestroyRenderer(renderer);
    SDL_DestroyWindow(window);
    SDL_Quit();

    return 0;
}

Does anyone know where I am going wrong?

Thank you all in advance.
67
General (but related to Code::Blocks) / Re: Loading menubar fails (rev 13759)
« Last post by Miguel Gimenez on November 17, 2025, 01:44:42 pm »
May be related to the GTK library used, see this.
68
General (but related to Code::Blocks) / Loading menubar fails (rev 13759)
« Last post by magfan on November 17, 2025, 01:05:07 pm »
Hi, today I downloaded codeblocks source via svn and compiled it (./configure --with-contrib-plugins=all,-NassiShneiderman). But when I wanted to start codeblocks it gave me this error:

Starting Code::Blocks svn build  rev 13759 Nov 17 2025, 12:34:16 - wxWidgets 3.2.8 - gcc 14.3.1 (Linux, unicode) - 64 bit
Manager initialized
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
./src/common/object.cpp(233): assert "classTable->Get(m_className) == __null" failed in Register(): Class "wxGenericCalendarCtrl" already in RTTI table - have you used wxIMPLEMENT_DYNAMIC_CLASS() multiple times or linked some object file twice)?
69
Using Code::Blocks / Re: Code::Blocks and Intel OneAPI?
« Last post by ThierryD on November 14, 2025, 03:44:58 pm »
Hi,

Howto is joined.

Regards.
70
Help / Re: WIKI service
« Last post by Wkerry on November 14, 2025, 09:55:24 am »
looks like a bot as it is working and has been for a while now.
Pages: 1 2 3 4 5 6 [7] 8 9 10