hello, i have been trying to set up sfml on visual studio 2010, ( sfml 1.6) and i have tried ALOT of thing but nothing works , i recompiled the project i have downloaded the filles from a site that said those where the compiles vs 2010 lib filles ect ect i have linked evrything correctly ( i really hope ) and i was able to use some functions in command prompt but as soon as i try to make a basic window it gives me "The application was unable to start correctly (0xc0150002). Click OK to close the application. i have the .dll's in the main projects folder, and im not getting any compiler errors :S
this is the code
#include <SFML/Window.hpp>
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Test Window");
bool Running = true;
while (Running){
App.Display();
}
return EXIT_SUCCESS;
}
and this is the debug output
'sfml.exe': Loaded 'C:\Users\SEX\Documents\Visual Studio 2010\Projects\sfml\Debug\sfml.exe', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Users\SEX\Documents\Visual Studio 2010\Projects\sfml\sfml\sfml-window-d.dll', Cannot find or open the PDB file
The program '[7996] sfml.exe: Native' has exited with code -1072365566 (0xc0150002).
what should i do ? reinstal vs 2010? get another ide? i am pretty bummed out about this i have been trying recompiling and relinking over and over i hope i did not just screw it up even more.
hello, i have been trying to set up sfml on visual studio 2010, ( sfml 1.6) and i have tried ALOT of thing but nothing works , i recompiled the project i have downloaded the filles from a site that said those where the compiles vs 2010 lib filles ect ect i have linked evrything correctly ( i really hope ) and i was able to use some functions in command prompt but as soon as i try to make a basic window it gives me "The application was unable to start correctly (0xc0150002). Click OK to close the application. i have the .dll's in the main projects folder, and im not getting any compiler errors :S
this is the code
#include <SFML/Window.hpp>
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Test Window");
bool Running = true;
while (Running){
App.Display();
}
return EXIT_SUCCESS;
}
and this is the debug output
'sfml.exe': Loaded 'C:\Users\SEX\Documents\Visual Studio 2010\Projects\sfml\Debug\sfml.exe', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Users\SEX\Documents\Visual Studio 2010\Projects\sfml\sfml\sfml-window-d.dll', Cannot find or open the PDB file
The program '[7996] sfml.exe: Native' has exited with code -1072365566 (0xc0150002).
what should i do ? reinstal vs 2010? get another ide? i am pretty bummed out about this i have been trying recompiling and relinking over and over i hope i did not just screw it up even more.
any more info that could help?
are you linking your .lib files correctly. I think you are linking to sfml-system-d.lib where as the project should be linked to sfml-system-s-d.lib;... and other .lib files
So I'm writing a tutorial on how to build a game using SFML 1.6 and the setup portion end up being a hell of a lot more involved then I ever would have expected!
Anyways, the tutorial isn't even close to finished and they havent really been published, but the two parts entailing configuring SFML are up in draft form and should be everything you need to know. Worst case scenario, there is a link to a project file you can simply download and start from if you have trouble following along.
As there are no links to the tutorial yet, you have to use direct page links. So here goes:
Don't click the "forward" link, you'll just get a 404 error, since page 3 isn't up yet. These two posts should cover everything you need to know.
Oh, and if you are running an ATI card, you might want to read this. There is a known bug in 1.6 between SFML, OpenGL and ATI drivers, which I personally ran into. The fix is easy, if a bit bewildering.
I am actively working on the next few parts as we speak, and hopefully it will be published this weekend.
i don't see whats wrong with that but its because i was with my girlfriend when i reformatted and i told her to chose the name of my baby( aka my computer )
i didint wan't to bump this up but i wanted to say thanks to all the help i ended up following this tutorial (http://minalien.com/.../sfml-zelda-2a/) and setting it up to work, the only thing i can see is that in the tutorial in main.cpp he uses
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
return EXIT_SUCCESS;
}
witch i am not familiar with i have always just used int main() and i dont really like using code i dont understant, but hey it compiles without the error im happy with it for the momment, im bringin this up because just using int main() gives me compiler errors.
p,s
.
currently looking at your site Serapth did not see it sorry, thanks for the help. any beginner sfml sites you guys know of? thanks again.
[quote name='lukeymoo' timestamp='1314380585' post='4854152']
Can I ask why your user name is 'SEX'
i don't see whats wrong with that but its because i was with my girlfriend when i reformatted and i told her to chose the name of my baby( aka my computer )
i didint wan't to bump this up but i wanted to say thanks to all the help i ended up following this tutorial (http://minalien.com/.../sfml-zelda-2a/) and setting it up to work, the only thing i can see is that in the tutorial in main.cpp he uses
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
return EXIT_SUCCESS;
}
witch i am not familiar with i have always just used int main() and i dont really like using code i dont understant, but hey it compiles without the error im happy with it for the momment, im bringin this up because just using int main() gives me compiler errors.
p,s
.
currently looking at your site Serapth did not see it sorry, thanks for the help. any beginner sfml sites you guys know of? thanks again.
[/quote]
To put it simply WinMain is just your normal int main() but for windows so your int main() will not work if you are creating a Win32 application. For SFML both console and Win32 application will work fine. The difference will be that it will first open up a console window and only then open your real window if you are using int main() while using int WINAPI WinMain() will result in direct opening of window... So feel free to use any of those