C Language and Libraries Help (clang.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.
#error
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
  Directive:  #error
 
  Syntax:     #error message
 
  Summary:    Causes the compiler to display <message> on stderr and
              return a nonzero code when the compiler terminates. After
              the compiler encounters an #error directive, it scans the
              rest of the program for syntax errors but does not
              produce an object file. For example:
 
                   #if !defined( _CHAR_UNSIGNED )
                   #error /J option required.
                   #endif
 
  See also:   #pragma message
                                    -♦-