I'm getting this error when trying to use LoadGUISkinFromFile:
Error 1 error LNK2019: unresolved external symbol "struct irr::gui::SImageGUISkinConfig __cdecl irr::LoadGUISkinFromFile(class irr::io::IFileSystem *,class irr::video::IVideoDriver *,class irr::core::string<char,class irr::core::irrAllocator<char> > const &)" (?LoadGUISkinFromFile@irr@@YA?AUSImageGUISkinConfig@gui@1@PAVIFileSystem@io@1@PAVIVideoDriver@video@1@ABV?$string@DV?$irrAllocator@D@core@irr@@@core@1@@Z) referenced in function _main Main.obj
Here is my code:
Code: Select all
include "Main.h"
#include <CGUIProgressBar.h>
#include <CImageGUISkin.h>
#include <SkinLoader.h>
int main()
{
Device =createDevice(EDT_OPENGL, dimension2d<s32>(800,600), 32,false, false, false, 0);
//MyEventReceiver Receiver;
//Device->setEventReceiver(&Receiver);
Driver = Device->getVideoDriver();
Smgr = Device->getSceneManager();
Env = Device->getGUIEnvironment();
FileSys = Device->getFileSystem();
SImageGUISkinConfig GuiCfg;
GuiCfg = LoadGUISkinFromFile(FileSys, Driver, "/ui/guiskin.cfg");
/*CImageGUISkin* skin = new CImageGUISkin(Driver, Gui->getSkin());
skin->loadConfig(guicfg);
gui::IGUIFont* font = Gui->getFont("../ui/fontlucida.png");
if (font != 0)
skin->setFont(font);
Gui->setSkin(skin);
skin->drop();*/
//Camera = Smgr->addCameraSceneNode(NULL,vector3df(100,100,-500),vector3df(0,0,0),-1);
//Camera = Smgr->addCameraSceneNodeFPS();
//Camera->setPosition(vector3df(0,100,-300));
while(Device->run())
{
Driver->beginScene(true, true, SColor(0,0,0,0));
Smgr->drawAll();
Env->drawAll();
Driver->endScene();
}
Device->drop();
return 0;
}