x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How can I resolve "Warning 2 warning C4653: compiler option 'Optimizations or debug checks' inconsistent with precompiled header"?

Hello

I use "Coherent UI" plugin for drawing HUD.

When I try to build the project in "DebugGame Editor" mode , I get the following warning:

Warning 2 warning C4653: compiler option 'Optimizations (one or more of /Oawstgp[y]) or debug checks (one or more of /GZ, /RTCcsu)' inconsistent with precompiled header; current command-line option ignored ..\Plugins\CoherentUI\Source\CoherentUIPlugin\Private\CoherentUIViewListener.cpp 1 1

And the error:

error C2220: warning treated as error - no 'object' file generated

How can I build the project in "DebugGame Editor" mode? Thank you.

Product Version: Not Selected
Tags:
more ▼

asked Jun 02 '14 at 07:24 AM in C++ Programming

avatar image

kirill_ul
113 12 12 64

avatar image lemrysroberts Jun 02 '14 at 10:33 AM

I'm getting the same problem when trying to use a plugin that previously contained UnrealEd references.

When the references existed, the compilation error was regarding unknown types contained within UnrealEd, which makes complete sense.

Without all UnrealEd references removed, the plugin compilation now produces this rather more inscrutable complaint.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Found a solution to the problem.

You can disable PCH for CoherentUI module and then he would compile without warning.

 namespace UnrealBuildTool.Rules
 {
    public class CoherentUIPlugin : ModuleRules
    {
       public CoherentUIPlugin(TargetInfo Target)
       {
          PCHUsage = PCHUsageMode.NoSharedPCHs;
          ...
       }
    }
 }
more ▼

answered Jun 02 '14 at 11:33 PM

avatar image

kirill_ul
113 12 12 64

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question