Hello all,
I'm having a wierd problem. i'm developping a nice game with openGL on MFC. i need to use threads for multi sound. so i am trying to use the BASS lib for that.
For a reason that is beyond my comprihention, i can not get the bass.lib to link. all other libs (openGL libs and so on) link perfect.
i'v added "#include "base.h" to my *.h MFC dialog file (tried both the .cpp and the .h).
I am using a global function for the thread declared in the cpp file:
UINT SetMusicThread(LPVOID Param);
Calling the new thread in the "onInitDialog()":
AfxBeginThread(SetMusicThread,GetSafeHwnd(),THREAD_PRIORITY_NORMAL,0,0,NULL);
The function for now is just trying to start the first stream: just trying set by step:
UINT SetMusicThread(LPVOID Param) { //soundTrack* sound = (soundTrack*)Param;
// Create Handle to the music str=BASS_StreamCreateFile(FALSE,Sound[SoundPosition],0,0,0); // Check if valid if(!str) { // Not valid, Free object //FreeMusicThread(); return FALSE; } }
str is a global HSTEAM.
The program compiles ok, but doesn't link with the messege:
Error 6 error LNK2019: unresolved external symbol _BASS_StreamCreateFile@20 referenced in function "unsigned int __cdecl SetMusicThread(void *)" (?SetMusicThread@@YAIPAX@Z) MonstersDlg.obj Monsters
added the bass.lib to the "Addisionals dependencies" and even tried to put it both in my project and in the the LIB of the SDKs library....tried every thing i can think of....
Can any one please help me....what am i missing???
10x