Hi there I am new to SFML, but not to game development.
I have never had so many problems with setting up simple project as with SFML past days. Sorry to say it.
It took me few hours to set up and find the errors because of the 3 types of different libs...etc.
Never mind. I have this code:
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
using namespace sf;
int main()
{
RenderWindow window(VideoMode(640,480),"Game engine");
CircleShape shape(10.0f);
while (window.isOpen())
{
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
I get this error:
Error 1 error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B) C:\Users\pcName\Documents\Development Projects\Visual Studio Projects\GameEngine\GameEngine\main.obj GameEngineWhen I try to use sf::Color::Black or any other color for shape lets say, I get
unresolved external symbol for color as well.
I guess it will be in setting the SFML up, which i cannot set up better from the tutorial.
Thanks.