Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Installation problems with codeblocks  (Read 1690 times)

0 Members and 1 Guest are viewing this topic.

pipatrol

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Installation problems with codeblocks
« on: August 23, 2018, 12:43:38 am »
Hi

I've tried a few methods following the online tutorial and a number of questions that people have asked regarding this but can't seem to get hte basic tutorial to work.

So I'm using SFML 2.5 (gcc 5.1.0-tdm-32 version), Codeblocks 16, MINGW GCC 6.3 on Windows 10

I opened an empty project with the example code

Quote
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}
For build options I have:

Global Project: Linker Settings > Link Libraries:
opengl32
freetype
winmm

Search Directories>
Compiler:
...\SFML-2.5.0\include
Linker:
...\SFML-2.5.0\lib

Debug>>
Linker Settings > Link Libraries:
sfml-graphics-d
sfml-window-d
sfml-system-d

Search Directories>
Compiler:
...\SFML-2.5.0\include
Linker:
...\SFML-2.5.0\lib

Release>>
Linker Settings > Link Libraries:
sfml-graphics
sfml-window
sfml-system

Search Directories>
Compiler:
...\SFML-2.5.0\include
Linker:
...\SFML-2.5.0\lib

It doesn't mention it in the tutorial but I've added SFML-graphics-d-2.dll,SFML-window-d-2.dll,SFML-system-d-2.dll to the project directory as well based on other posts recommendation.

When I run it the error
"The procedure entry point __gxx_personality_sj0 could not be located in the DLL ... sfml-graphics-d-2.dll" for each of the three libraries. I set it to use c++11 in the compiler options although I expect that should not cause issues.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Installation problems with codeblocks
« Reply #1 on: August 23, 2018, 12:51:25 am »


So I'm using SFML 2.5 (gcc 5.1.0-tdm-32 version), Codeblocks 16, MINGW GCC 6.3 on Windows 10
Maybe it has something to do with the big
red message on the download page:

Quote
The compiler versions have to match 100%!
Here are links to the specific MinGW compiler versions used to build the provided packages:

You can't mix different compiler versions.
If you use your MinGW GCC 6.3 compiler, you need to build from source. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/