n my code I need the typeof() function which need the rtti enabled but when I try to build my project it does not see the typeof function but when I include “bUseRTTI = true;” in the plugin build.cs file my project throw “/clang:-1: linker command failed with exit code 1 (use -v to see invocation)”
this is the plugin build.cs Code:
using UnrealBuildTool;
public class CryptoPPPlugin : ModuleRules
{
public CryptoPPPlugin(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(
new string[] {
"CryptoPPPlugin/Public"
// ... add public include paths required here ...
}
);
PrivateIncludePaths.AddRange(
new string[] {
"CryptoPPPlugin/Private",
// ... add other private include paths required here ...
}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
// ... add other public dependencies that you statically link with here ...
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject",
"Engine",
"Slate",
"SlateCore",
// ... add private dependencies that you statically link with here ...
}
);
// Turn on RTTI, support typeid()
bUseRTTI = true;
// support throw exception after opening
bEnableExceptions = true;
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
}
);
}
}
Is there anything I need to do to make the rtti work in the project?!!