To add on:
I was trying to work a get-around by
void AudioLoader::load()
{
...
Music *rockTracks;
rockTracks = new Music[MAX_TRACK_NUM];
...
}
=> rockTracks = new Music[MAX_TRACK_NUM]; <<== causing linking errors
I get LNK errors:
1>AudioLoader.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall sf::Music::~Music(void)" (??1Music@sf@@UAE@XZ) referenced in function "public: void __thiscall AudioLoader::load(void)" (?load@AudioLoader@@QAEXXZ)
1>AudioLoader.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Music::Music(unsigned int)" (??0Music@sf@@QAE@I@Z) referenced in function "public: void __thiscall sf::Music::`default constructor closure'(void)" (??_FMusic@sf@@QAEXXZ)
I don't want to make my audioloader in the main.