Okay sure.
- installed VS2010 ultimate (not recently, it has been on my laptop for a while)
- downloaded SFML 2.0 RC (
http://www.sfml-dev.org/download/2.0-rc/SFML-2.0-rc-windows-32-vc2010.zip)
- created a new C++ Project (Win32, Console, Empty Project)
- add new C++ File (main.cpp)
- Project Properties: C/C++ -> General -> Additional Include Directories: C:\SFML-2.0-rc\include
- Project Properties: Linker -> General -> Additional Library Directories: C:\SFML-2.0-rc\lib
- Project Properties: Linker -> Input -> Additional Dependencies:
sfml-graphics-d.lib
sfml-window-d.lib
sfml-system-d.lib
- main.cpp:
#include "SFML/Window.hpp"
#include "SFML/Graphics.hpp"
#include <iostream>
int main(){
sf::RenderWindow Window(sf::VideoMode(800,600, 32), "SfmlTest",sf::Style::Default);
{
sf::RenderTexture texture;
if (!texture.create(500, 500))
return -1;
}
std::cin.get();
return 0;
}
- Copy sfml-system-d-2.dll, sfml-window-d-2.dll and sfml-graphics-d-2.dll from C:\SFML-2.0-rc\bin to my programs debug folder
- Press Debug
Voilà
Windows has triggered a breakpoint in SfmlTest.exe.
This may be due to a corruption of the heap, which indicates a bug in SfmlTest.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while SfmlTest.exe has focus.
The output window may have more diagnostic information.