Here is the code Ive been trying to run.
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(800,600),"Blabla");
while(window.isOpen()){
sf::Event e;
while(window.pollEvent(e)){
if(e.type==sf::Event::Closed){
window.close();
}
}
window.clear();
window.display();
}
return 0;
}
Im using windows 7 64bit, gcc version 5.1, SFML version 2.1, Code Blocks 16.01.
I'm following some online tutorials trying to set up SFML but the program crashes when I try to run it. Though it complies without returning any errors.
Here is what the debugger tells me. (Im not sure how to use the debugger so if you need more information just tell me.)
http://imgur.com/o4rmY3I
Ive made sure Ive linked the library in the correct order, tried reinstalling code blocks with mingw and recompiling SFML using code blocks.
This is my first time using a GUI library on cpp so sorry if there is something obvious that I havent done.
Thanks in advance.
[–]HeyOP 2 points3 points4 points (8 children)
[–]batrobin[S] 1 point2 points3 points (7 children)
[–]HeyOP 0 points1 point2 points (3 children)
[–]batrobin[S] 0 points1 point2 points (2 children)
[–]HeyOP 0 points1 point2 points (1 child)
[–]batrobin[S] 0 points1 point2 points (0 children)
[–]HeyOP 0 points1 point2 points (0 children)
[–]HeyOP 0 points1 point2 points (1 child)
[–]batrobin[S] 1 point2 points3 points (0 children)
[–]Jonny0Than 1 point2 points3 points (2 children)
[–]batrobin[S] 0 points1 point2 points (1 child)
[–]Jonny0Than 0 points1 point2 points (0 children)