Im working on an engine that loads a dll that contains all the GUI code, its works if I use
In DLL SFWindow = new sf::Window(sf::VideoMode(800, 600), Title);
but will not load if I use
SFWindow = new sf::RenderWindow(sf::VideoMode(800, 600), Title);
the dll is compiled using
g++ -std=c++0x -shared -o Gui.x86.dll Gui/Gui_Interface.cpp Gui/Gui_Gui.cpp Gui/Gui_Window.cpp -Wl,-rpath,'$ORIGIN' Common.x86.dll
-lsfml-system -lsfml-graphics -lsfml-window -lOpengl32 -lGlu32
and loaded in main executable
SharedLibrary GuiLib("Gui.x86","Init");
InitGui = (GuiInterface (*)()) GuiLib.Function;
Interface.Gui = InitGui();
I have no Idea why it is doing this thanks