I tried to add the plugin directly to the new project and compile it, and it shows LINK : fatal error LNK1104: cannot open file. However, if I delete the Binaries folder in the plugin, the project compiles correctly after it automatically rebuilds.
I want to know if “LINK: Fatal error” generated by compiling my plugin is normal?
Is there any risk in deleting the Binaries folder in the plugin?
// in YourPlugin.Build.cs
public YourPlugin(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
bUsePrecompiled = true; // need to add this line
PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
}
);
...
}