🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

[SOLVED] wwise SDK 101: init memory manager linker error HELP!

Started by
-1 comments, last by Mbrpistoni 8 years, 11 months ago

So, I finally got a wwise license, so I'm triying to implement It within my custom engine (is build on c++, Directx11, Physx, Cal3D).
I'm using the documentation you can find within the SDK and I'm finding a big problem: linker error on AK::MemoryMgr::Init(). This is all the code I have (wich is pretty much copy/paste from the help file)

#include "AK/SoundEngine/Common/AkMemoryMgr.h"
#include "AK/SoundEngine/Common/AkModule.h"

bool CWwiseManager::initSoundEngine()
{

AkMemSettings memSetting;
memSettings.uMaxNumPools = 20;
if (AK::MemoryMgr::Init(&memSettings) != AKRESULT::AK_Success)
{
assert(!"Could not create the memory manager.");
return false;
}

return true;
}

and that's the error

Error 1 error LNK2001: unresolved external symbol "enum AKRESULT __cdecl AK::MemoryMgr::Init(struct AkMemSettings *)" (?Init@MemoryMgr@AK@@YA?AW4AKRESULT@@PEAUAkMemSettings@@@Z) E:\bitBucket\thirst_componentes\engine\wwise_manager.obj engine

I can't find any solution to this problem. Anywhere. Does anyone know anything about It? Can you bring some light to my dark corner? Thank you!

SOLUTION:

I was missing a VERY important step: link all the libs needed. Just In case you are wondering, this is the complete list you need for x64/x32 DEBUG in your linker/aditional dependencies


AkConvolutionReverbFX.lib
AkFlangerFX.lib
AstoundsoundExpanderFX.lib
AkTremoloFX.lib
AkMemoryMgr.lib
AuroHeadphoneFX.lib
IOSONOProximityMixer.lib
AkMotionGenerator.lib
AkSineSource.lib
AkSoundSeedWind.lib
AkStereoDelayFX.lib
AkGuitarDistortionFX.lib
AkRumble.lib
AuroPannerMixer.lib
AkSoundEngine.lib
AkSilenceSource.lib
AkPeakLimiterFX.lib
McDSPLimiterFX.lib
iZTrashBoxModelerFX.lib
AkSoundSeedImpactFX.lib
AkRoomVerbFX.lib
iZTrashDelayFX.lib
McDSPFutzBoxFX.lib
AkParametricEQFX.lib
AstoundsoundFolddownFX.lib
AkToneSource.lib
AkMatrixReverbFX.lib
AkCompressorFX.lib
AkAudioInputSource.lib
AkMusicEngine.lib
AkSoundSeedWoosh.lib
CrankcaseAudioREVModelPlayerFX.lib
iZTrashMultibandDistortionFX.lib
iZHybridReverbFX.lib
AkPitchShifterFX.lib
iZTrashDynamicsFX.lib
iZTrashDistortionFX.lib
AstoundsoundRTIFX.lib
AkDelayFX.lib
AkGainFX.lib
AkVorbisDecoder.lib
AkMeterFX.lib
AstoundsoundShared.lib
iZTrashFiltersFX.lib
AkSynthOne.lib
AkMP3Source.lib
AkStreamMgr.lib
AkHarmonizerFX.lib
AkTimeStretchFX.lib
AkExpanderFX.lib
CommunicationCentral.lib

This topic is closed to new replies.

Advertisement