Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Linker error Visual Studio 2013

0 votes

Hello,

I've tried looking online to see if anyone else had this error but no luck.

I may be overlooking something but this error has been bugging me.
I'm getting a linker error when I call the AK::MemoryMgr::Init() function.

Now the funny thing is it compiles in 32 bit Debug and Release no problem, and also 64 release.
The only time I get these linker errors is when I compile in 64 Debug mode.

I checked my project settings on Visual Studio 2013 on all the settings and even made a new project to see if 
had to be something with my settings. 

I'm getting these linker errors.

1>AkSoundEngine.lib(AkMonitor.obj) : error LNK2019: unresolved external symbol "public: __cdecl Serializer::Serializer(class AK::IWriteBuffer &,bool)" (??0Serializer@@QEAA@AEAVIWriteBuffer@AK@@_N@Z) referenced in function "public: __cdecl MonitorSerializer::MonitorSerializer(bool)" (??0MonitorSerializer@@QEAA@_N@Z)
1>AkSoundEngine.lib(AkMonitor.obj) : error LNK2019: unresolved external symbol "public: __cdecl Serializer::~Serializer(void)" (??1Serializer@@QEAA@XZ) referenced in function "public: virtual __cdecl MonitorSerializer::~MonitorSerializer(void)" (??1MonitorSerializer@@UEAA@XZ)
1>AkSoundEngine.lib(AkLEngine_SoftwarePipeline.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl Serializer::Put(char)" (?Put@Serializer@@QEAA_ND@Z) referenced in function "public: static void __cdecl CAkLEngine::GetPipelineData(class MonitorSerializer &,bool)" (?GetPipelineData@CAkLEngine@@SAXAEAVMonitorSerializer@@_N@Z)
1>AkSoundEngine.lib(AkLEngine_SoftwarePipeline.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl Serializer::Put(unsigned char)" (?Put@Serializer@@QEAA_NE@Z) referenced in function "public: static void __cdecl CAkLEngine::GetPipelineData(class MonitorSerializer &,bool)" (?GetPipelineData@CAkLEngine@@SAXAEAVMonitorSerializer@@_N@Z)
1>AkSoundEngine.lib(AkLEngine_SoftwarePipeline.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl Serializer::Put(unsigned short)" (?Put@Serializer@@QEAA_NG@Z) referenced in function "public: static void __cdecl CAkLEngine::GetPipelineData(class MonitorSerializer &,bool)" (?GetPipelineData@CAkLEngine@@SAXAEAVMonitorSerializer@@_N@Z)
1>AkSoundEngine.lib(AkLEngine_SoftwarePipeline.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl Serializer::Put(unsigned long)" (?Put@Serializer@@QEAA_NK@Z) referenced in function "public: static void __cdecl CAkLEngine::GetPipelineData(class MonitorSerializer &,bool)" (?GetPipelineData@CAkLEngine@@SAXAEAVMonitorSerializer@@_N@Z)
1>AkSoundEngine.lib(AkLEngine_SoftwarePipeline.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl Serializer::Put(unsigned __int64)" (?Put@Serializer@@QEAA_N_K@Z) referenced in function "public: static void __cdecl CAkLEngine::GetPipelineData(class MonitorSerializer &,bool)" (?GetPipelineData@CAkLEngine@@SAXAEAVMonitorSerializer@@_N@Z)
1>AkSoundEngine.lib(AkLEngine_SoftwarePipeline.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl Serializer::Put(float)" (?Put@Serializer@@QEAA_NM@Z) referenced in function "bool __cdecl PutRawMeterData(enum AkMonitorData::BusMeterDataType,struct AkChannelConfig,float const *,class MonitorSerializer &)" (?PutRawMeterData@@YA_NW4BusMeterDataType@AkMonitorData@@UAkChannelConfig@@PEBMAEAVMonitorSerializer@@@Z)
1>AkSoundEngine.lib(AkLEngine_SoftwarePipeline.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl Serializer::Put(bool)" (?Put@Serializer@@QEAA_N_N@Z) referenced in function "public: static void __cdecl CAkLEngine::GetPipelineData(class MonitorSerializer &,bool)" (?GetPipelineData@CAkLEngine@@SAXAEAVMonitorSerializer@@_N@Z)
1>AkSoundEngine.lib(AkLEngine_SoftwarePipeline.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl Serializer::PutPacked(float)" (?PutPacked@Serializer@@QEAA_NM@Z) referenced in function "public: static void __cdecl CAkLEngine::GetPipelineData(class MonitorSerializer &,bool)" (?GetPipelineData@CAkLEngine@@SAXAEAVMonitorSerializer@@_N@Z)

The code is simple, I'm pretty much copying and pasting what is in the WwiseSDK-Windows.chm

#include "w_memoryHook.h" 

#include <AK/SoundEngine/Common/AkTypes.h>

#ifndef AK_OPTIMIZED
#include <AK/Comm/AkCommunication.h>    // Communication between Wwise and the game (excluded in release build)
#endif

#include <AK/SoundEngine/Common/AkMemoryMgr.h> //Memory manager
#include <AK/SoundEngine/Common/AkModule.h> //Default memory and stream managers
#include <AK/SoundEngine/Common/AkSoundEngine.h> //Sound
#include <AK/MusicEngine/Common/AkMusicEngine.h>    // Music Engine

#include <iostream>

bool InitSoundEngine()
{
  AkMemSettings w_memorySettings;
  w_memorySettings.uMaxNumPools = 20;

  if (AK::MemoryMgr::Init(&w_memorySettings) != AK_Success)
  {
    std::cout << "Could not create wWise memory manager." << std::endl;
    return false;
  }
return true;
}
int main(void)
{
return 0;
}

If anyone could help I would appreciate it very much.

asked Jul 6, 2015 in General Discussion by Jeffrey U. (270 points)

1 Answer

0 votes
Hi! I Solved the exact same problem. Aparently you are missing a library in the linker/aditional dependencies. This is the whole list, the one you're (and me until 5min ago) missing is the last one

    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
answered Jul 14, 2015 by M.Bruno R. (300 points)
edited Jul 15, 2015 by M.Bruno R.
...