Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. Contact Sales if your project requires a support plan.

Error when use wwise in c++ (UE4.20)

0 votes
In my .build.cs:

PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore", "AkAudio" });

But afterI include "AkGameplayStatics.h" I got these errors:

E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(32): error C2059: syntax error: 'constant'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(33): error C2059: syntax error: 'public'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(34): error C2143: syntax error: missing ';' before '{'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(34): error C2447: '{': missing function header (old-style formal list?)
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(55): error C2059: syntax error: 'constant'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(56): error C2059: syntax error: 'public'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(57): error C2143: syntax error: missing ';' before '{'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(57): error C2447: '{': missing function header (old-style formal list?)
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(59): error C2059: syntax error: 'constant'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(60): error C2059: syntax error: 'public'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(61): error C2143: syntax error: missing ';' before '{'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(61): error C2447: '{': missing function header (old-style formal list?)
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(142): error C2988: unrecognizable template declaration/definition
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(142): error C2143: syntax error: missing ';' before '<'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(142): error C2059: syntax error: '<'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(142): error C2059: syntax error: 'public'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(143): error C2143: syntax error: missing ';' before '{'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(143): error C2447: '{': missing function header (old-style formal list?)
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(192): error C2977: 'AkStringImpl': too many template arguments
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK/Tools/Common/AkString.h(142): note: see declaration of 'AkStringImpl'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(192): error C2143: syntax error: missing ',' before '<'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK/Tools/Common/AkString.h(238): note: see reference to class template instantiation 'AkStringImpl<TAlloc>' being compiled
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(195): error C2143: syntax error: missing ';' before '<'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(195): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(195): error C2238: unexpected token(s) preceding ';'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(246): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(246): error C2059: syntax error: 'constant'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(248): error C2143: syntax error: missing ';' before '{'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(248): error C2447: '{': missing function header (old-style formal list?)
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(262): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(262): error C2059: syntax error: 'constant'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(263): error C2059: syntax error: 'public'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(264): error C2143: syntax error: missing ';' before '{'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(264): error C2447: '{': missing function header (old-style formal list?)
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(464): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(464): error C2059: syntax error: 'constant'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(465): error C2039: 'Instance': is not a member of '`global namespace''
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\Tools\Common\AkString.h(465): error C2039: 'pInstance': is not a member of '`global namespace''
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(65): error C2143: syntax error: missing ';' before '<'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(66): error C2059: syntax error: '<'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(67): error C2059: syntax error: '<'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(68): error C2143: syntax error: missing ';' before '<'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(91): error C2059: syntax error: ':'
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(88): error C2671: 'AkSpatialAudioID::AkSpatialAudioID': static member functions do not have 'this' pointers
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK\SpatialAudio\Common\AkSpatialAudioTypes.h(88): error C2614: 'AkSpatialAudioID': illegal member initialization: 'id' is not a base or member
2>E:\svn-3dmmo2018\Game\Plugins\Wwise\ThirdParty\include\AK/SpatialAudio/Common/AkSpatialAudioTypes.h(88): fatal error C1903: unable to recover from previous error(s); stopping compilation

 

Wwise Version: v2018.1.5  Build: 6835
asked May 16 in General Discussion by Joey H. (100 points)

Please sign-in or register to answer this question.

...