I am not sure what you mean in this thread but it seams to be able my problem. Basically I am using SFML2.
I am linking to
sfml-graphics.lb
sfml-window.lib
sflm-system.lib
sfml-main.lib
I am compiling on "release"... I get same error on debug if i add the -d .... what happens is that the sfml app runs, but it get a crash when i try to exit. I did a empty win32 app.
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(1280, 720), "TehTrix - Yet Another Tetris Clone", sf::Style::Titlebar | sf::Style::Close);
sf::Text text("Hello SFML");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(text);
window.display();
}
return EXIT_SUCCESS;
}
This is my code.. it is just to try and get it running. The thing is I do not know what u guys mean but ...
add the -mwindows flag.
---- EDIT ----
I found this post..
Yep, the ATI fix is implemented but it still crashes when you use the default font.
So changed the code to this....
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(1280, 720), "TehTrix - Yet Another Tetris Clone", sf::Style::Titlebar | sf::Style::Close);
// Load the text font
sf::Font font;
if (!font.loadFromFile("../../trunk/resource/font/sansation.ttf"))
return EXIT_FAILURE;
// Initialize the pause message
sf::Text pauseMessage;
pauseMessage.setFont(font);
pauseMessage.setCharacterSize(40);
pauseMessage.setPosition(170.f, 150.f);
pauseMessage.setColor(sf::Color::White);
pauseMessage.setString("Welcome to SFML");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(pauseMessage);
window.display();
}
return EXIT_SUCCESS;
}
and now it don't crash... but... um.. what exactly is sflm-main?