c++ - how to resolve th "C4653" warning in vs2010? -


i converting c++ project 2008 2010, warning level 4 "warning c4653: compiler option 'optimizations (one or more of /oawp[y])' inconsistent precompiled header; current command-line option ignored" warning has been thrown.

if there no special .cpp files in project require special optimization options files should have same options. reset options set on specific files projets defaults, , change options whole project.

if need .cpp files have special optimization options turn off precompiled header files. situation not common in normal projects.

edit: set project properties: right-click on project (not on solution) in solution explorer > select properties. can same thing single .cpp files too: right-click on .cpp file in solution explorer > properties. can several files well, first select them (ctrl+click, or shift+click, files in win explorer), properties. don't have close properties window, rather select other item while window open.

so, right-click on .cpp file > properties > c/c++ > precompiled headers > replace "use precompiled header" "not using precompiled headers". that's it. build.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -