C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Conflicting Options
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     When the CL utility encounters conflicting options, it does one
     of two things: it either uses the most recently encountered
     option, or it emits an error message and terminates compilation.
 
     If CL encounters conflicting options for which it need not make
     major assumptions about the run-time environment, it uses the
     most recent version of the option. Examples of such options are
     setting warning levels (/W<x>), specifying inline expansion
     (/Ob<x>), or specifying structure packing (/Zp<x>). In the
     following example, MYAPP.C is compiled with the warning level set
     to 3:
 
          CL /W4 /W3 MYAPP.C
 
     If CL encounters conflicting options for which it must make major
     assumptions concerning the run-time environment, it emits an
     error message and then terminates compilation. Examples of such
     options are the floating-point options (/FP<x>) or the
     memory-model options (/A<x>). For example, CL terminates when it
     reads the following:
 
          CL /AS MYAPP.C /AM ANOTHER.C
                                    -♦-