Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Simply Fortran support it. How to set for Code::Block 25.03?
2
Using Code::Blocks / lSdl3 and lSdl3main not found
« Last post by JPF12141999 on Today at 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.
3
May be related to the GTK library used, see this.
4
General (but related to Code::Blocks) / Loading menubar fails (rev 13759)
« Last post by magfan on Yesterday at 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)?
5
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.
6
Help / Trying to get Code::blocks working on a new PC and having no luck
« Last post by Dp-Rst on November 14, 2025, 03:19:42 pm »
Hello there,

I have used Code::blocks for 10 years and whenever I get a new PC I just copy paste the installation folder from my program files and it works out the box. My old laptop broke, but I copied over the file and it didn't work which means I cannot continue my video game project.

I tried deleting it all and installing the 20.03 version with mingw and it still doesn't work

I am getting this:

  The compiler's setup 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->unknown->Toolchain executables" and fix the compiler's setup.

When I autodetect it works to find the compiler, but spits this error out still. I tried the latest version with my own manual install of a compiler, then wiped the pc and tried again with the 20.03 mingw both give the same error.

I have no idea how I can solve this?
7
Help / Re: WIKI service
« Last post by Miguel Gimenez on November 14, 2025, 11:20:07 am »
Badly hidden spam link by fadedstudi reported to moderator.
8
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.
9
Help / Re: WIKI service
« Last post by fadedstudi on November 14, 2025, 09:41:31 am »
10
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--
Pages: [1] 2 3 4 5 6 ... 10