don't click here

SFML Integration into Code::Blocks

Discussion in 'Technical Discussion' started by RetroKoH, May 26, 2018.

  1. RetroKoH


    Project Sonic 8x16
    For context, SFML is this.

    To keep things short, I use Code::Blocks primarily to code simple console applications in C++, as practice for my upcoming courses I am taking. I feel I have a good grasp on the basics, and have programmed in M68k ASM and GMS before, and wanted to try my hand at coding a basic game in C++.

    Of course, I'm not talking a basic text game, though I created a simple Combat Simulator for an RPG engine I am working on, but I want to make something visual. From what I gathered from YouTube tutorials, I have found that apparently integrating SFML is the way to go. Therein lies my issue. I've tried following no less than 6 different guides to do it successfully, and EVERY one of them results in different errors. I can't even get it to build, even though I am following the tutorial instructions to a tee. I feel that the tutorials I've been following are lacking in important details, as I don't know what I'm doing wrong.

    Has anyone done this with any success? And if so, can someone please help me to get started? Or perhaps are there more ideal alternatives for C++ programming? Cheers!
  2. Devon


    I'm a loser, baby, so why don't you kill me? Tech Member
    your mom
    Well, what kinds of errors have you been getting?

    On a side note, there's also SDL, which is also cross platform and pretty much seems to do what SFML generally does, which I have used before doing other work with Direct3D and OpenGL. To be honest, I'm not too sure on how it compares against SFML (though I've heard SFML is more object oriented), as I've never really done much with it in the past, but it's there.
  3. Billy


    RIP Oderus Urungus Member
    Colorado, USA
    Indie games
    Never used it with Code::Blocks, but I've used SFML a lot with Visual Studio, as well as compiling with it on Linux. What errors are you running into? Are you only following YouTube tutorials? If so, there's excellent tutorials on the SFML site.

    RE: Side note, I vastly prefer SFML over SDL since, as stated before, it's object oriented. Put simply, SFML is C++ library, SDL is a C library.