Does the Binaries folder in the Plugin have to be kept?

Hello,

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 my experience, the error seems not normal. Maybe contact the author of the plugin?

But yeah, Binaries can be safely deleted. It is regenerated every time you restart the project.

For quick reference, you can see this

Cheers,

1 Like

Thanks for your reply.

The plugin is made by myself, and I keep the C++ code in my plugin.
Is it because of this reason that the LINK error is caused?

I found the cause of the problem.

     // 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 ...
			}
			);
		...
	}