I am currently attempting to integrate WWise into my project.
The debug build can run just fine, but when attempting to build a release build i get these errors
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "void * __cdecl AK::MemoryMgr::dMalloc(int,unsigned __int64,char const *,unsigned int)" (?dMalloc@MemoryMgr@AK@@YAPEAXH_KPEBDI@Z)
Error LNK2001 unresolved external symbol "void * __cdecl AK::MemoryMgr::dMalign(int,unsigned __int64,unsigned int,char const *,unsigned int)" (?dMalign@MemoryMgr@AK@@YAPEAXH_KIPEBDI@Z)
Looking at my additional dependencies, these are the lib files included :
ws2_32.lib
dinput8.lib
Dsound.lib
Msacm32.lib
Dbghelp.lib
Winmm.lib
AkAudioInputSource.lib
AkCompressorFX.lib
AkDelayFX.lib
AkExpanderFX.lib
AkFlangerFX.lib
AkGainFX.lib
AkGuitarDistortionFX.lib
AkHarmonizerFX.lib
AkMatrixReverbFX.lib
AkMeterFX.lib
AkParametricEQFX.lib
AkPeakLimiterFX.lib
AkPitchShifterFX.lib
AkRecorderFX.lib
AkRoomVerbFX.lib
AkSilenceSource.lib
AkSineSource.lib
AkStereoDelayFX.lib
AkSynthOneSource.lib
AkTimeStretchFX.lib
AkToneSource.lib
AkTremoloFX.lib
AkMemoryMgr.lib
AkMusicEngine.lib
AkSoundEngine.lib
AkSpatialAudio.lib
AkStreamMgr.lib
AkVorbisDecoder.lib
AkOpusDecoder.lib
And the initialize function looks like this
AKRESULT result = AK_Fail;
// WWiseMemoryManager initialization
AkMemSettings memorySettings;
AK::MemoryMgr::GetDefaultSettings(memorySettings);
result = AK::MemoryMgr::Init(&memorySettings);
assert(result == AK_Success);
// WWiseStreamManager Initialization
AkStreamMgrSettings streamMgrSettings;
AK::StreamMgr::GetDefaultSettings(streamMgrSettings);
assert(AK::StreamMgr::Create(streamMgrSettings) != nullptr);
AK::StreamMgr::SetCurrentLanguage(AKTEXT("English (US)"));
AkDeviceSettings deviceSettings;
AK::StreamMgr::GetDefaultDeviceSettings(deviceSettings);
result = package.Init(deviceSettings);
package.SetBasePath(L"./WWise/SoundBank/Windows");
AK::StreamMgr::SetFileLocationResolver(&package);
// WWiseSoundEngine Initialization
AkInitSettings initSettings;
AkPlatformInitSettings platformSettings;
AK::SoundEngine::GetDefaultInitSettings(initSettings);
AK::SoundEngine::GetDefaultPlatformInitSettings(platformSettings);
result = AK::SoundEngine::Init(&initSettings, &platformSettings);
assert( result == AK_Success);
// WWiseMusicEngine Initialization
AkMusicSettings musicSettings;
AK::MusicEngine::GetDefaultInitSettings(musicSettings);
result = AK::MusicEngine::Init(&musicSettings);
assert( result == AK_Success);
// WWiseSpatialAudio Initialization
AkSpatialAudioInitSettings spatialAudioSettings; // Automatically filled when constructed
result = AK::SpatialAudio::Init(spatialAudioSettings);
assert(result == AK_Success);
#ifndef AK_OPTIMIZED
// WWiseCommunication intialization
//AkCommSettings commSettings;
//AK::Comm::GetDefaultInitSettings(commSettings);
//assert(AK::Comm::Init(commSettings) == AK_Success);
#endif