I get the error:
missing sfml-graphics-2.dll
when i try to compile SFML under windows. I walked through the tutorial.
Path to SFML
C:\SFML-2.1\
to confirm... in compiler settings for code blocks i changed:
compiler
C:\SFML-2.1\include
linker
C:\SFML-2.1\lib
settings->#defines
SFML_STATIC
linker settings:
sfml-graphics
sfml-window
sfml-system
sfml-network
enabled flag for c++11
windows 8
code blocks mingw
SFML 2.1
I think that was it. I don't really see a problem?
changing to this however changed no results.
sfml-graphics-s
sfml-window-s
sfml-system-s
sfml-network-s
EDIT:
sorry.... i didnt see the build target drop down box option to change from debug to release. Changing that stopped the original error.
However now i get 50 errors with the example code given:
#include <SFML/Window.hpp>
#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;
}
compiling:
mingw32-g++.exe -LC:\SFML-2.1\lib -LC:\SFML-2.1\lib -LC:\SFML-2.1\lib -o bin\Release\test.exe obj\Release\main.o -s -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio -lsfml-network -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lsfml-audio-s -lsfml-network-s
I am not sure if this is related to the changes i made to the projects links etc. i nthis thread or someething completely different at this point now.