Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
HI, i hav created a scene using irredit where i used the irrklang node to play a sound on my scene. I loaded the scene using the irrlicht engine and this is wat i put in my program, at the top include<irrKlangSceneNode.h> before the main irrklang::ISoundEngine* soundEngine = createIrrKlangDevice(); within the main CIrrKlangSceneNodeFactory* factory = new CIrrKlangSceneNodeFactory(soundEngine, smgr); smgr->registerSceneNodeFactory(factory); at the bottom factory->drop(); This is the error message i get: C:\Documents and Settings\HI\My Documents\irrlicht-1.4\Shooting01\main.o:main.cpp:(.text+0x2f6): undefined reference to `CIrrKlangSceneNodeFactory::CIrrKlangSceneNodeFactory(irrklang::ISoundEngine*, irr::scene::ISceneManager*)' THANKS |
||||
|
Maybe you didn't add the irrklangscenenode .cpp to your project? |
||||
|
i have added the folder containing the cpp file onto the directory of the complier and have also copied the file into the folder where the code is but still get the error message. |
||||
|
soz my bad such a dumb ass, i added the cpp file to my code and kinda worked. The thing is that it cant find the sound type, i hav tried to change the directory in irredit, tried movin the sound file onto irrlicht engine folder but still cant find it, any ideas on this. Also thanks for the help ![]() |
||||
|
you might need to restart irredit after changing the working folder in the options, maybe this is it? |
||||
|
yea restarted it, saved the scene, reloaded it in irrlicht and still nothing. |
|