hi,
I am getting a linking problem :
Linking...
myproject.obj : error LNK2019: unresolved external symbol FSOUND_Init referenced in function "public: __cdecl CMyApplication::CMyApplication(struct _GDAPPCONFIG const &)" (??0CMyApplication@@QAA@ABU_GDAPPCONFIG@@@Z)
ARMRel/MyProject.exe : fatal error LNK1120: 1 unresolved externals
What I have done is the following:
I have created a class called SOUND:
<snip snip>
sound.h :
#ifndef __SOUND_H__
#define __SOUND_H__
#include "fmod.h"
typedef class SOUND {
public:
FMUSIC_MODULE *mod;
SOUND() {
mod = NULL;
FSOUND_Init(12000, 32, FSOUND_INIT_GLOBALFOCUS);
};
....
} SOUND;
<snip snip>
In the main CGAPIApp:
<snip snip>
..
#include "sound.h"
class CMyApplication : public CGapiApplication
{
public:
SOUND sound;
CMyApplication(const GDAPPCONFIG& config) : CGapiApplication(config) {
sound = SOUND();
}
...
}
It compiles fine... but complains when linking...
The fmod library is definitely in the right place...
Can somebody help?
/jomarco