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.

+1 vote
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
in General Discussion by Joey H. (170 points)

1 Answer

0 votes
Hey, just wondering if you sorted this issue? I'm working on a project and this same thing is happening.
by Daniel B. (140 points)
I also use UnrealEnginePython, and in AkString.h, the tempalte T_CHAR redefine in UEPy, so rename T_CHAR can sovle this problem
...