Recent Posts

Pages: 1 2 3 4 5 6 [7] 8 9 10
61
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?
62
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.
63
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.
64
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)?
65
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.
66
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.
67
Using Code::Blocks / Code::Blocks and Intel OneAPI?
« Last post by porkroast on November 11, 2025, 06:23:28 pm »
Hello all:

I am having some trouble setting up the Intel OneAPI C++ compiler to work with Code::Blocks-- I am using MSVC 2022 Community Edition, and I have the Intel Command Line interface working.  Windows 11-- I keep getting linking errors, so I believe that my compiler and directory settings are off.  Has anyone here made this work yet?  Thank you--
68
Using Code::Blocks / Re: Dark Mode
« Last post by bad_terminal on November 10, 2025, 10:25:23 am »
So no button then.  :(

Not that it matters much anyway, i've uninstalled 25.03 as it was using so much cpu my PC fans kept ramping up.

So that it doesn't appear that i'm spamming the forum, i'll ask another question in here:- On 20.03 I enable code completion in toolbar, and remove browsetracker, then I save everything, save workspace, but upon restart, browsetracker is back in toolbar, and code completion is not. Very frustrating. I there a fix?

edit:So I managed to do this by editing a file in user/codeblocks dir named browsetracker. For some reason it then saved 'code completion' on the toolbar. Weird. All I have to do now is make it remember my preferred zoom (font size). Unfortunatley every time I've tried it in the past, it fails, and also changes the font in the editor. I can then never find the default font that codeblocks uses. Does anyone know what the default font is?

btw ollydbg, I like your bit of advice in your sig, i'll have to remember it!
Thanks.
69
Development / Re: Support for c++20 modules
« Last post by ollydbg on November 10, 2025, 03:05:03 am »
For who likes a workaround see: https://gitlab.com/jorgenjan-group/helloworld-for-c-with-modules-in-codeblocks

Good work!

I looked at the cbp file, it looks like there are 2 main changes compared with normal cbp file

1, some extra command is needed:

Code
				<ExtraCommands>
<Add before="rm -f gcm.cache" />
<Add before="mkdir -p obj/Debug/gcm.cache" />
<Add before="ln -s obj/Debug/gcm.cache ./gcm.cache" />
</ExtraCommands>


Here you call a "ln" command, my guess is that under Windows system, there is no such command.


2, when building the cxx file, it should set the weight to 10.

Code
		<Unit filename="Hello.cxx">
<Option weight="10" />
</Unit>

Which means this file should be built before other source files.


70
Development / Re: Support for c++20 modules
« Last post by JorgenBest on November 09, 2025, 05:04:40 pm »
Pages: 1 2 3 4 5 6 [7] 8 9 10