#error [C++ Reference]
Keywords: preprocessor,error
Date: 2008-10-14T15:42:05-0700

[[#error]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## #error

Syntax:

        #error message

The #error command simply causes the compiler to stop when it is encountered. When an #error is encountered, the compiler spits out the line number and whatever message is. This command is mostly used for debugging.

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •