I’ve tried to compile this plugin for UE 4.8.
But,This error logs appeard.
…\Public\WiimoteFunctionLibrary.h(9) : error C2079: ‘UWiimoteFunctionLibrary’ uses undefined class ‘WIIMOTE_API’
…\Public\WiimoteFunctionLibrary.h(9) : error C2143: syntax error : missing ‘;’ before ‘:’
…\Public\WiimoteFunctionLibrary.h(9) : error C2059: syntax error : ‘:’
…\Public\WiimoteFunctionLibrary.h(9) : error C2059: syntax error : ‘public’
…\Public\WiimoteFunctionLibrary.h(10) : error C2143: syntax error : missing ‘;’ before ‘{’
…\Public\WiimoteFunctionLibrary.h(10) : error C2447: ‘{’ : missing function header (old-style formal list?)
…\Public/WiimoteFunctionLibrary.h(9) : error C2079: ‘UWiimoteFunctionLibrary’ uses undefined class ‘WIIMOTE_API’
…\Public/WiimoteFunctionLibrary.h(9) : error C2143: syntax error : missing ‘;’ before ‘:’
…\Public/WiimoteFunctionLibrary.h(9) : error C2059: syntax error : ‘:’
…\Public/WiimoteFunctionLibrary.h(9) : error C2059: syntax error : ‘public’
…\Public/WiimoteFunctionLibrary.h(10) : error C2143: syntax error : missing ‘;’ before ‘{’
…\Public/WiimoteFunctionLibrary.h(10) : error C2447: ‘{’ : missing function header (old-style formal list?)
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(12) : error C2825: ‘UWiimoteFunctionLibrary’: must be a class or namespace when followed by ‘::’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(12) : error C2039: ‘StaticRegisterNativesUWiimoteFunctionLibrary’ : is not a member of ‘global namespace'' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(12) : error C2146: syntax error : missing ';' before identifier 'StaticRegisterNativesUWiimoteFunctionLibrary' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(12) : error C2182: 'UWiimoteFunctionLibrary' : illegal use of type 'void' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(12) : error C2086: 'int UWiimoteFunctionLibrary' : redefinition ..\\Public/WiimoteFunctionLibrary.h(9) : see declaration of 'UWiimoteFunctionLibrary' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(13) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(14) : error C2825: 'UWiimoteFunctionLibrary': must be a class or namespace when followed by '::' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(14) : error C2039: 'StaticClass' : is not a member of 'global namespace’’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(14) : error C2146: syntax error : missing ‘)’ before identifier ‘StaticClass’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(14) : error C2660: ‘FNativeFunctionRegistrar::RegisterFunction’ : function does not take 1 arguments
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(14) : error C2039: ‘execSetIREnabled’ : is not a member of ‘global namespace'' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(14) : error C2059: syntax error : ')' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(15) : error C2825: 'UWiimoteFunctionLibrary': must be a class or namespace when followed by '::' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(15) : error C2039: 'StaticClass' : is not a member of 'global namespace’’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(15) : error C2146: syntax error : missing ‘)’ before identifier ‘StaticClass’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(15) : error C2660: ‘FNativeFunctionRegistrar::RegisterFunction’ : function does not take 1 arguments
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(15) : error C2039: ‘execSetMotionPlusEnabled’ : is not a member of ‘global namespace'' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(15) : error C2059: syntax error : ')' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(16) : error C2825: 'UWiimoteFunctionLibrary': must be a class or namespace when followed by '::' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(16) : error C2039: 'StaticClass' : is not a member of 'global namespace’’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(16) : error C2146: syntax error : missing ‘)’ before identifier ‘StaticClass’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(16) : error C2660: ‘FNativeFunctionRegistrar::RegisterFunction’ : function does not take 1 arguments
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(16) : error C2039: ‘execSetMotionSensingEnabled’ : is not a member of ‘global namespace'' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(16) : error C2059: syntax error : ')' ..\\Private\WiimoteFunctionLibrary.cpp(5) : error C2825: 'UWiimoteFunctionLibrary': must be a class or namespace when followed by '::' ..\\Private\WiimotePlugin.cpp(8) : error C2514: 'FWiimoteInputDevice' : class has no constructors ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(17) : error C2825: 'UWiimoteFunctionLibrary': must be a class or namespace when followed by '::' ..\\Private\WiimoteFunctionLibrary.cpp(5) : error C2143: syntax error : missing ';' before 'UWiimoteFunctionLibrary' ..\\Public\WiimotePlugin.h(23) : see declaration of 'FWiimoteInputDevice'..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(17) : error C2039: 'StaticClass' : is not a member of 'global namespace’’…\Pr
…\Private\WiimoteFunctionLibrary.cpp(5) : error C2086: ‘int UWiimoteFunctionLibrary’ : redefinition
…\Public\WiimoteFunctionLibrary.h(9) : see declaration of ‘UWiimoteFunctionLibrary’
…\Private\WiimoteFunctionLibrary.cpp(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
…\Private\WiimoteFunctionLibrary.cpp(6) : error C2063: ‘UWiimoteFunctionLibrary’ : not a function
…\Private\WiimoteFunctionLibrary.cpp(6) : error C3755: ‘UWiimoteFunctionLibrary’: a delegate may not be defined
…\Private\WiimoteFunctionLibrary.cpp(6) : error C2065: ‘ObjectInitializer’ : undeclared identifier
…\Private\WiimoteFunctionLibrary.cpp(10) : error C2825: ‘UWiimoteFunctionLibrary’: must be a class or namespace when followed by ‘::’
…\Private\WiimoteFunctionLibrary.cpp(10) : error C2039: ‘SetIREnabled’ : is not a member of ‘global namespace'' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(17) : error C2146: syntax error : missing ')' before identifier 'StaticClass' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(17) : error C2660: 'FNativeFunctionRegistrar::RegisterFunction' : function does not take 1 arguments ..\\Private\WiimoteFunctionLibrary.cpp(10) : error C2146: syntax error : missing ';' before identifier 'SetIREnabled' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(17) : error C2039: 'execSetRumbleEnabled' : is not a member of 'global namespace’’…\Private\WiimoteFunctionLibrary.cpp(10) : error C2182: 'UWiimoteFunctionLib
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(17) : error C2059: syntax error : ‘)’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(18) : error C4508: ‘StaticRegisterNativesUWiimoteFunctionLibrary’ : function should return a value; ‘void’ return type assumed
…\Private\WiimoteFunctionLibrary.cpp(10) : error C2086: ‘int UWiimoteFunctionLibrary’ : redefinition
…\Public\WiimoteFunctionLibrary.h(9) : see declaration of ‘UWiimoteFunctionLibrary’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2923: ‘TClassCompiledInDefer’ : ‘UWiimoteFunctionLibrary’ is not a valid template type argument for parameter ‘TClass’
…\Private\WiimoteFunctionLibrary.cpp(11) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int …\Public/WiimoteFunctionLibrary.h(9) : see declaration of ‘UWiimoteFunctionLibrary’
…\Private\WiimoteFunctionLibrary.cpp(17) : error C4508: ‘SetIREnabled’ : function should return a value; ‘void’ return type assumed
…\Private\WiimoteFunctionLibrary.cpp(19) : error C2825: ‘UWiimoteFunctionLibrary’: must be a class or namespace when followed by ‘::’
…\Private\WiimoteFunctionLibrary.cpp(19) : error C2039: ‘SetMotionPlusEnabled’ : is not a member of ‘`global namespace’’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2514: ‘TClassCompiledInDefer’ : class has no constructors…\Private\WiimoteFunctionLibrary.cpp(19) : error C2146: syntax error : missing ‘;’ before
…\Private\WiimoteFunctionLibrary.cpp(19) : error C2182: ‘UWiimoteFunctionLibrary’ : illegal use of type ‘void’
c:\program files\epic games\4.8\engine\source\runtime\coreuobject\public\uobject\UObjectBase.h(313) : see declaration of 'TClassCompiledInDefer'
…\Private\WiimoteFunctionLibrary.cpp(19) : error C2086: ‘int UWiimoteFunctionLibrary’ : redefinition
…\Public\WiimoteFunctionLibrary.h(9) : see declaration of ‘UWiimoteFunctionLibrary’
…\Private\WiimoteFunctionLibrary.cpp(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
…\Private\WiimoteFunctionLibrary.cpp(26) : error C4508: ‘SetMotionPlusEnabled’ : function should return a value; ‘void’ return type assumed
…\Private\WiimoteFunctionLibrary.cpp(28) : error C2825: ‘UWiimoteFunctionLibrary’: must be a class or namespace when followed by ‘::’
…\Private\WiimoteFunctionLibrary.cpp(28) : error C2039: ‘SetMotionSensingEnabled’ : is not a member of ‘global namespace'' ..\\Private\WiimoteFunctionLibrary.cpp(28) : error C2146: syntax error : missing ';' before identifier 'SetMotionSensingEnabled' ..\\Private\WiimoteFunctionLibrary.cpp(28) : error C2182: 'UWiimoteFunctionLibrary' : illegal use of type 'void' ..\\Private\WiimoteFunctionLibrary.cpp(28) : error C2086: 'int UWiimoteFunctionLibrary' : redefinition ..\\Public\WiimoteFunctionLibrary.h(9) : see declaration of 'UWiimoteFunctionLibrary' ..\\Private\WiimoteFunctionLibrary.cpp(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ..\\Private\WiimoteFunctionLibrary.cpp(35) : error C4508: 'SetMotionSensingEnabled' : function should return a value; 'void' return type assumed ..\\Private\WiimoteFunctionLibrary.cpp(37) : error C2825: 'UWiimoteFunctionLibrary': must be a class or namespace when followed by '::' ..\\Private\WiimoteFunctionLibrary.cpp(37) : error C2039: 'SetRumbleEnabled' : is not a member of 'global namespace’’
…\Private\WiimoteFunctionLibrary.cpp(37) : error C2146: syntax error : missing ‘;’ before identifier ‘SetRumbleEnabled’
…\Private\WiimoteFunctionLibrary.cpp(37) : error C2182: ‘UWiimoteFunctionLibrary’ : illegal use of type ‘void’
…\Private\WiimoteFunctionLibrary.cpp(37) : error C2086: ‘int UWiimoteFunctionLibrary’ : redefinition
…\Public\WiimoteFunctionLibrary.h(9) : see declaration of ‘UWiimoteFunctionLibrary’
…\Private\WiimoteFunctionLibrary.cpp(38) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
…\Private\WiimoteFunctionLibrary.cpp(44) : error C4508: ‘SetRumbleEnabled’ : function should return a value; ‘void’ return type assumed
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2825: ‘UWiimoteFunctionLibrary’: must be a class or namespace when followed by ‘::’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2039: ‘GetPrivateStaticClass’ : is not a member of ‘`global namespace’’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2146: syntax error : missing ‘;’ before identifier ‘GetPrivateStaticClass’@progress ‘Compiling C++ source code…’ 40%
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2373: ‘UWiimoteFunctionLibrary’ : redefinition; different type modifiers
…\Public/WiimoteFunctionLibrary.h(9) : see declaration of ‘UWiimoteFunctionLibrary’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2065: ‘StaticClassFlags’ : undeclared identifier
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2974: ‘GetPrivateStaticClassBody’ : invalid template argument for ‘TClass’, type expected
C:\Program Files\Epic Games\4.8\Engine\Source\Runtime\CoreUObject\Public\UObject\Class.h(2402) : see declaration of ‘GetPrivateStaticClassBody’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2440: ‘return’ : cannot convert from ‘UClass *’ to ‘int’
There is no context in which this conversion is possible
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : error C2617: ‘GetPrivateStaticClass’ : inconsistent return statement
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(19) : see declaration of ‘GetPrivateStaticClass’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(133) : error C2825: ‘UWiimoteFunctionLibrary’: must be a class or namespace when followed by ‘::’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(133) : error C2039: ‘StaticClass’ : is not a member of ‘global namespace'' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(133) : error C2146: syntax error : missing ';' before identifier 'StaticClass' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(133) : error C3861: 'StaticClass': identifier not found ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(142) : error C2825: 'UWiimoteFunctionLibrary': must be a class or namespace when followed by '::' ..\\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(142) : error C2039: 'StaticClass' : is not a member of 'global namespace’’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(142) : error C2440: ‘=’ : cannot convert from ‘int’ to ‘UClass *’
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(142) : error C2146: syntax error : missing ‘;’ before identifier ‘StaticClass’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(142) : error C3861: ‘StaticClass’: identifier not found
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(169) : error C2825: ‘UWiimoteFunctionLibrary’: must be a class or namespace when followed by ‘::’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(169) : error C2143: syntax error : missing ‘;’ before ‘UWiimoteFunctionLibrary’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(169) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(169) : error C2086: ‘int UWiimoteFunctionLibrary’ : redefinition
…\Public/WiimoteFunctionLibrary.h(9) : see declaration of ‘UWiimoteFunctionLibrary’
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(169) : error C2063: ‘UWiimoteFunctionLibrary’ : not a function
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(169) : error C3755: ‘UWiimoteFunctionLibrary’: a delegate may not be defined
…\Win64\UE4Editor\Inc\WiimotePlugin\WiimotePlugin.generated.cpp(169) : error C2065: ‘Helper’ : undeclared identifier