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
#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.