I'm using MSVC++ 2008 with SFML1.6.
i'm basicly just reading through the tutorials here:
http://www.sfml-dev.org/tutorials/1.6/ making my own little program that doesn't really do much. i get upto the sprite tutorial, and... i've hit a bump where there probably shouldn't be one.
sf::Image Image;
if (!Image.LoadFromFile("sprite.tga"))
exit(EXIT_FAILURE);
The LoadFromFile function seems to cause a problem. to put it simply, comment out that line, and the exit line, and the program runs fine, but if its there at all, the program crashs on window creation when you try and run it. it doesn't matter if the file exists or not, it always crashs.
There is also 3 warnings that come up when compiling.
sfml-window-s.lib(VideoMode.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
and same again for sfml-window-s.lib(Context.obj) and MSVCRT.lib(cpu_disp.obj)
Any ideas?