CR的代码文本

all for learning about the world
  订阅 订阅  :: 管理

VS2010: Command-Line Warning D9025

Posted on 2011-05-30 13:20  mumuliang  阅读(2069)  评论(0编辑  收藏  举报
基本上就是command line 中的编译选项和general中的冲突了。

MSDN解释如下: 

Command-Line Warning D9025 

overriding 'option1' with 'option2'

 

The option1 option was specified but was then overridden by option2. The option2 option was used.


If two options specify contradictory or incompatible directives, the directive specified or implied in the option farthest to the right on the command line is used.

If you get this warning when compiling from the development environment, and are not sure where the conflicting options are coming from, consider the following:

An option can be specified either in code or in the project's project settings. If you look at the compiler's Command Line Property Pages and if you see the conflicting options in the All Options field then the options are set in the project's property pages, otherwise, the options are set in source code.

If the options are set in project's property pages, look on the compiler's Preprocessor property page (with the project node selected in the Solution Explorer). If you do not see the option set there, check the Preprocessor property page settings for each source code file (in Solution Explorer) to make sure it's not added there.

If the options are set in code it could be set either in code or in the windows headers. You might try creating a preprocessed file (/P) and search it for the symbol.