Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Using Code::Blocks / Re: lSdl3 and lSdl3main not found
« Last post by davismark on Today at 05:51:05 am »
Hi everyone, quordle

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.
For SDL3, the libraries are typically -lSDL3 and (if needed) -lSDL3main, not -l3DL3 or -l3Dl3main. Also make sure your linker search path points to the folder containing the SDL3 .lib/.a files. If it still fails, sharing the exact linker error would help narrow it down.
2
Nightly builds / Re: The 20 July 2026 build (13916) is out.
« Last post by Elena on August 01, 2026, 11:34:01 am »
Gosh ! You really mean "anti-feature" ! As you may have understood, it's not just about the blue line, but they look ugly in general if compared with the previous ones ! Even WX developers are uniforming to those ugly w10+ standards ??? Really CB coders have no control over it, maybe with some attributes ? That's crazy !!
3
Nightly builds / Re: The 27 July 2026 build (13924) is out.
« Last post by ThierryD on July 31, 2026, 05:42:48 pm »
... I have installed WSL on W11 15H2 64 bit, but with last distribution of Ubuntu (available with WSL -> Ubuntu 26.04).

And, I test to use your PPA to download last nightly of CB (after have installed CB 25.03 with "apt").

I execute theses instructions with success :
sudo add-apt-repository ppa:x-psoud/cbnb
sudo apt update

but,  next step, normally "sudo apt upgrade", don't work ...
Nothing about last nightly of CB ...

Can you test this ?

Thank you.
4
Nightly builds / Re: The 27 July 2026 build (13924) is out.
« Last post by ThierryD on July 31, 2026, 05:36:48 pm »
-> to Xaviou too :

On my "new" PC, I ha
5
Nightly builds / Re: The 27 July 2026 build (13924) is out.
« Last post by ThierryD on July 31, 2026, 05:33:36 pm »
... type on "tab" on keyboard do exit/fail on my last topic write ... I continue here :

To Xaviou :
         - my last relaunch of CB without changes into "plugin" don't see last error on assert, only first message about Path ...
         - disable plugin "clangd_client", and new relaunch of CB, no one message appear ... Thank you.

To Christo :
        - I don't use "clangd" on Linux Mint ... at date. Nothing install about this on my configuration.

Regards.
6
Nightly builds / Re: The 27 July 2026 build (13924) is out.
« Last post by ThierryD on July 31, 2026, 05:26:56 pm »
Sorry to late response ... My "old" PC is failed ... and new PC is not fully ready ...

To Xaviou : 
Last relaunch of CB
7
Plugins development / Re: rev-13926 ; ContribPlugins_wx32-unix.workspace
« Last post by Miguel Gimenez on July 30, 2026, 10:26:36 am »
Fixed in r13927.
8
General (but related to Code::Blocks) / Re: Thanks for a great IDE
« Last post by Miguel Gimenez on July 30, 2026, 10:20:08 am »
Spam reported to moderator.
9
Hello :)

Do you think there would be interest in creating a module or submitting a pull request to Code::Blocks to generate CMake solutions directly from CB using the cmake-file-api?
10
General (but related to Code::Blocks) / Re: Thanks for a great IDE
« Last post by snowrider3dgame on July 30, 2026, 08:55:11 am »
Snow Rider 3D offers a relaxing yet challenging entertainment experience, where each playthrough is an opportunity to hone your skills, improve your reflexes, and conquer new score milestones.
Pages: [1] 2 3 4 5 6 ... 10