Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 879 Bytes

fatal-error-c1189.md

File metadata and controls

31 lines (23 loc) · 879 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Fatal Error C1189
Fatal Error C1189
04/27/2018
C1189
C1189
2e5c8a78-edd4-411c-b619-558a96be148a

Fatal Error C1189

#error :user supplied error message

Remarks

C1189 is generated by the #error directive. The developer who codes the directive specifies the text of the error message. For more information, see #error Directive (C/C++).

Example

The following sample generates C1189. In the sample, the developer issues a custom error message because the _WIN32 identifier is not defined:

// C1189.cpp #undef _WIN32 #if !defined(_WIN32) #error _WIN32 must be defined // C1189 #endif

See also

#define Directive (C/C++)

close