windows - Error when tring to use tgui c++ -



windows - Error when tring to use tgui c++ -

i have been building game using sfml in c++ on windows. have finished game , have been trying create gui using tgui because looked simple , easy use. have set in vc++ project , compiled seemingly simple piece of code.

#include <sfml/window.hpp> #include <tgui/tgui.hpp> int main() { sf::renderwindow window(sf::videomode(800, 600), "my window"); tgui::gui gui(window); while (window.isopen()) { sf::event event; while (window.pollevent(event)) { gui.handleevent(event); } window.clear(); gui.draw(); window.display(); } homecoming 0; }

the code compiles fine, when start code unhandled exception @ 0x80002610 in test.exe: 0xc0000005: access violation executing location 0x80002610.

i wondering access violation perchance coming from. help.

c++ windows user-interface sfml

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -