Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
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.
92
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?
93
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"?
94
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?
95
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.
96
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.
97
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)?
98
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.
99
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.
100
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 ... 5 6 7 8 9 [10]