Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes

HI,

I'm running UE4 version 4.5 and Wwise SDK version 2014.1.1 Build 5179 and I am having linking errors when trying to use the Wwise specific classes in my C++ game project.  Something just as simple as FAkAudioDevice::Get() causes an unresolved external symbol linking error.  I was able to use the suplied Wwise demo project with no problems, but creating my new c++ project I am getting linking errors if I try to use any of the Wwise classes.

 

Error output from Visual Studio:

MyPawn.cpp.obj : error LNK2019: unresolved external symbol "public: static class FAkAudioDevice * __cdecl FAkAudioDevice::Get(void)" (?Get@FAkAudioDevice@@SAPEAV1@XZ) referenced in function "public: void __cdecl AMyPawn::OnMouseClick(void)" (?OnMouseClick@AMyPawn@@QEAAXXZ)
1>C:\Projects\Unreal\Projects\MyProject2\Binaries\Win64\UE4Editor-MyProject2.dll : fatal error LNK1120: 1 unresolved externals


 

Any ideas?

 

Thanks,

Jared

in General Discussion by Jared M. (220 points)
edited by Jared M.

1 Answer

0 votes
 
Best answer

In your game's build script, make sure you include a dependency on the AkAudio module, as so:

            PublicDependencyModuleNames.Add("AkAudio");

 
by Benoit S. (Audiokinetic) (16.0k points)
selected by Jared M.
Thanks!  I eventually figured it out but forgot to come back here an post that.

I'm getting another unresolved external symbol linker error trying to use AK::SoundEngine::GetIDFromString(), any help for this one?
...