Plugin linking resource error

Hello, we keep getting this error when building our Plugin on either 4.6 or 4.7. It is an editor only plugin. Additionally, this error does not happen when we build on OS X.

>  Performing 3 actions (4 in parallel)
>  [1/3] Resource ModuleVersionResource.rc.inl
>  [2/3] Resource PCLaunch.rc
>EXEC : fatal error RC1107: invalid usage; use RC /? for Help
>EXEC : fatal error RC1107: invalid usage; use RC /? for Help

Could anyone please shed some light on what’s going on? Not exactly sure where to start debugging this.

ModuleVersionResource.rc.inl looks fine.

If i open PCLaunch.rc (Engine\Source\Runtime\Launch\Resources\Windows) in Visual Studio, I get 'fatal error RC1015: cannot open include file ‘CoreMiscDefines.h’.

Any help is appreciated, thanks.

Hello, ttvd

Sorry to hear about your issue.

To fix it, please try the following:

  1. In Visual Studio, go to Project - Properties - Configuration Properties - VC++ Directories.

  2. In Include Directories, remove the trailing backslash from the last path (if it is already there). In case there is none, add one.

  3. Rebuild the project.

Hope this helped!

Good luck!

Hello! That seems to have worked, but is still failing once in a while. Is there a better solution to this problem? Occasionally, after regenerating solution I can’t seem to bypass this issue at all, even if I follow your instructions.

Hello. I have solved the issue. This was caused by adding a definition in build.cs file which contained double quotes. (Definitions.Add(“Foo=“bar””)).