I've been trying to configure SFML-2.1 for my computer for the past few months (on and off). I have googled solutions for what seems like eternity, and I still cannot find an answer. SFML-2.0 works on my computer (compiled from source code).
System specs:
Sony Electronics Inc. VAIO Computer
Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz 2.27 GHz
Installed memory (RAM): 4.00 GB
System type: 64-bit OS
Graphics card:
GeForce 310M
Driver version: 332.21
I have tried installing SFML-2.1 with GCC 4.7 TDM (SJLJ) - 32 bits and compiling through source code. Neither seem to work. Basically, I can compile the code, but a seg fault occurs upon execution. I have set up the search directories for SFML-2.1, and the build options link to the correct libraries (using CodeBlocks w/ MinGW).
I get the same error message each time regardless of the SFML-2.1 version (I have searched solutions for this but no such luck).
"Process terminated with status -1073741819 (0 minutes, 6 seconds)"
Here is sample code which does not work - a seg fault occurs when the first RectangleShape is created:
#include <SFML/Graphics.hpp>
int main(int argc, char **argv)
{
sf::Event event;
bool quit = false;
sf::RectangleShape test;
sf::RenderWindow window(sf::VideoMode(522, 541), "test");
while (!quit)
{
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
quit = true;
}
window.clear(sf::Color(210, 210, 210));
window.display();
}
window.close();
}
I hope none of what I've posted is vague. If I need to post anything else please let me know.
Thank you for any help!