Hi guys!
So, I try to
using CEGUI in SFML like in this tutorial, but with the SFML 2.0 (that I had on the SFGUI repositories ^^') and with the latest release of CEGUI (0.7.7).
But when I try to compile, my compiler (GCC 4.6.3 on Ubuntu 12.04) return me this:
terminate called after throwing an instance of 'char const*'
Abandon (core dumped)
I make some test, apparently I haven't any problems with SFML. Here's the minimal code for the error:
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <CEGUI/CEGUI.h>
#include <CEGUI/RendererModules/OpenGL/CEGUIOpenGLRenderer.h>
int main(int argc, char* argv[])
{
sf::RenderWindow win(sf::VideoMode(800, 600, 32), "ExceptionTest");
//create an OpenGL renderer and initialize a CEGUI::System object
CEGUI::OpenGLRenderer& myRenderer = CEGUI::OpenGLRenderer::bootstrapSystem();
while(win.isOpen())
{
sf::Event evt;
while(win.pollEvent(evt))
{
switch(evt.type)
{
case sf::Event::Closed:
win.close();
break;
}
}
win.clear();
CEGUI::System::getSingleton().renderGUI();
win.display();
}
return EXIT_SUCCESS;
}
Soo.. hum.. I don't really understand what's happening... hope you can help me!
Thank you!