SFML community forums
Help => Window => Topic started by: falconmick on January 23, 2012, 06:03:41 pm
-
code blocks were glitching on initial post, ive coppied and pasted my post as a reply
-
heres the issue:
#include <SFML/Window.hpp>
////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
when I use this code a cmd line comes up and nothing else happens, I go into the debug/release folder and I can't find an executable even though my compiler (MVS2010) is telling me that it build successfully after a clean build... if I delete
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
and
App.Display();
which gives:
#include <SFML/Window.hpp>
////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
// Create the main window
//sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
// Start main loop
bool Running = true;
while (Running)
{
// App.Display();
}
return EXIT_SUCCESS;
}
it runs successfully (I was using breakpoints, when I had that code it didn't even enter main, in this version it enters the loop without issue)
ive followed all of the tutorials down to the dot EXCEPT i have added sfml-window.lib; to the linker input as I was getting linker issues
what can I do?
-
ATI card with SFML 1.6?
-
really :( it isn't compatable with HALF the computers in this world ;( whyyyy
-
found an apparent fix "atigktxx.dll", it made my PC blue screen -.- dont follow http://www.sfml-dev.org/forum/viewtopic.php?t=3438&postdays=0&postorder=asc&start=15 if u aint feelin lucky punks
-
SFML 1.6 crashes when i try to init a window aswell.
It looks like i linked the libs correctly because the first program on the tutorial page compiled.
When I tried to compile the code featured on the window tutorial, it compiled.However, when i ran the program it just sat there at the console(unresponsive).
Is there anything i can do to fix this or should i just go back to SDL?
btw, im using codeblocks on window 7(32-bit)
-
SFML 1.6 crashes when i try to init a window aswell.
It looks like i linked the libs correctly because the first program on the tutorial page compiled.
When I tried to compile the code featured on the window tutorial, it compiled.However, when i ran the program it just sat there at the console(unresponsive).
Is there anything i can do to fix this or should i just go back to SDL?
btw, im using codeblocks on window 7(32-bit)
Hate to dig this one up but I am running into the same problem. I've configured SFML 1.6, recompiled it, and even went as far as to compile and use SFML 2. I just cannot get a window to respond.
I'm using an nVidia card (560 Ti). Anyone have any ideas for why the window loads but hands and eventually stops responding? I am very eager to get into SFML but this is killing me. Literally spent an entire night on this. :(