I'v been trying to get this to work but I can't figure out what is wrong.
Linker Output:
(http://i.imgur.com/1dONXdyl.png)
Source Code:
#include <iostream>
#include <SFML\Graphics.hpp>
int main( int argc, char** argv )
{
sf::RenderWindow window;
window.create(sf::VideoMode(800,600,32), "SFML WINDOW");
sf::Event event;
while(window.isOpen())
{
while(window.pollEvent(event))
{
}
window.display();
}
return 0;
}
Compiler Settings:
(http://i.imgur.com/a3s74Rll.png)
Linker Settings:
(http://i.imgur.com/mReNCm4l.png)
Linker Libraries:
(http://i.imgur.com/V4wrpGCl.png)
Anyone know what I'm doing wrong?
The order of the libraries to link are important.
sfml-graphics depends on sfml-window, which depends on sfml-system
sfml-network depends on sfml-system
sfml-audio depends on sfml-system
Thus the order needs to be for example:
sfml-graphics
sfml-window
sfml-audio
sfml-network
sfml-system
(Don't forget the suffixes :D )
The order of the libraries to link are important.
sfml-graphics depends on sfml-window, which depends on sfml-system
sfml-network depends on sfml-system
sfml-audio depends on sfml-system
Thus the order needs to be for example:
sfml-graphics
sfml-window
sfml-audio
sfml-network
sfml-system
(Don't forget the suffixes :D )
Of course! I haven't bothered with the other compilers seeing as they simply haven't cared at all! Though CodeLite don't spoil me as much I guess.
Now a bit of topic, but do you know by ANY chance how I disable to console?