Hey all,
Recently got a hold of SFML 1.6 (for VC++ 2008). I'm looking to use it in conjunction with Ogre for a game (SFML will be the menu and audio).
Now, for testing, I tried some simple code.
sf::Music music;
music.OpenFromFile("rsrcs\music\alone.ogg");
music.Play();
The code itself doesn't bring any errors. I'm using VC++ 2010 Express, and I set-up SFML by using
.
Again, there is no syntax error, or what have you (I have got the correct include statement earlier in the code).
However, it generates these build errors...
1>sfml-audio-s.lib(SoundStream.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall sf::Thread::~Thread(void)" (??1Thread@sf@@UAE@XZ)
1>sfml-audio-s.lib(SoundStream.obj) : error LNK2001: unresolved external symbol "protected: __thiscall sf::Thread::Thread(void)" (??0Thread@sf@@IAE@XZ)
1>sfml-audio-s.lib(SoundStream.obj) : error LNK2001: unresolved external symbol "public: void __thiscall sf::Thread::Wait(void)" (?Wait@Thread@sf@@QAEXXZ)
1>sfml-audio-s.lib(SoundStream.obj) : error LNK2001: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z)
1>sfml-audio-s.lib(SoundStream.obj) : error LNK2001: unresolved external symbol "public: void __thiscall sf::Thread::Launch(void)" (?Launch@Thread@sf@@QAEXXZ)
Obviously, that notes that the issue is within SoundStream.obj, but I have no idea what to do to fix it.
Help?
-MoK
PS: The code is not within the main(), it is within a function used at the beginning of the game. However, I doubt that has any effect on it.