Error Visual Studio Preprocessor
Contents |
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers visual studio preprocessor definitions Retired content Samples We’re sorry. The content you requested has been removed. You’ll
Visual Studio Preprocessor To A File
be auto redirected in 1 second. C/C++ Preprocessor Reference Preprocessor Preprocessor Directives Preprocessor Directives #error Directive #error Directive #error Directive
Visual Studio Preprocessor Definitions Value
#define Directive #error Directive #if, #elif, #else, and #endif Directives #ifdef and #ifndef Directives #import Directive #include Directive #line Directive Null Directive #undef Directive #using Directive TOC Collapse the table of content
Visual Studio Preprocessor Variables
Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. #error Directive (C/C++) Visual Studio 2015 Other Versions Visual Studio 2013 Visual Studio 2012 Visual Studio 2010 Visual Studio 2008 Visual Studio 2005 Visual Studio .NET 2003 The #error directive emits a user-specified error message at compile time and then terminates visual studio preprocessor output the compilation.Syntax Copy #errortoken-string RemarksThe error message that this directive emits includes the token-string parameter. The token-string parameter is not subject to macro expansion. This directive is most useful during preprocessing for notifying the developer of a program inconsistency or the violation of a constraint. The following example demonstrates error processing during preprocessing: Copy #if !defined(__cplusplus) #error C++ compiler required. #endif See AlsoPreprocessor Directives Show: Inherited Protected Print Export (0) Print Export (0) Share IN THIS ARTICLE Is this page helpful? Yes No Additional feedback? 1500 characters remaining Submit Skip this Thank you! We appreciate your feedback. Dev centers Windows Office Visual Studio Microsoft Azure More... Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies Terms of use Trademarks © 2016 Microsoft © 2016 Microsoft
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel visual studio preprocessor definitions not working 9 Documentation APIs and reference Dev centers Retired content Samples We’re visual studio preprocessor definition environment variable sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Visual Studio visual studio preprocessor defines 2015 Visual C++ C/C++ Language and Standard Libraries C/C++ Language and Standard Libraries C/C++ Preprocessor Reference C/C++ Preprocessor Reference C/C++ Preprocessor Reference Welcome Back to C++ C++ Language Reference https://msdn.microsoft.com/en-us/library/c8tk0xsk.aspx C/C++ Preprocessor Reference Preprocessor Grammar Summary Pragma Directives and the __Pragma Keyword C Language Reference C Run-Time Library Reference C++ Standard Library Component Extensions for Runtime Platforms C++ Attributes Reference SafeInt Library TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and https://msdn.microsoft.com/en-us/library/y4skk93w.aspx is not being maintained. C/C++ Preprocessor Reference Visual Studio 2015 Other Versions Visual Studio 2013 Visual Studio 2012 Visual Studio 2010 Visual Studio 2008 Visual Studio 2005 Visual Studio .NET 2003 The C/C++ Preprocessor Reference explains the preprocessor as it is implemented in Microsoft C/C++. The preprocessor performs preliminary operations on C and C++ files before they are passed to the compiler. You can use the preprocessor to conditionally compile code, insert files, specify compile-time error messages, and apply machine-specific rules to sections of code.In This SectionPreprocessor DirectivesDescribes directives, typically used to make source programs easy to change and easy to compile in different execution environments.Preprocessor OperatorsDiscusses the four preprocessor-specific operators used in the context of the #define directive.Predefined MacrosDiscusses predefined macros as specified by ANSI and Microsoft C++.PragmasDiscusses pragmas, which offer a way for each compiler to offer machine- and operating system-specific features while retaining overall compatibility with the C and C++ languages.Related SectionsC++ Language ReferenceProvides reference material for the Microsoft implementation of the C++ language.C Language ReferencePr
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers https://msdn.microsoft.com/en-us/library/8z9z0bx6.aspx Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Compiling a C/C++ Program Compiler Options Compiler Options Listed Alphabetically Compiler Options Listed Alphabetically /P (Preprocess to a File) /P (Preprocess to a File) /P (Preprocess to a File) @ (Specify a Compiler Response File) /AI (Specify Metadata Directories) /analyze (Code Analysis) /arch (Minimum CPU visual studio Architecture) /bigobj (Increase Number of Sections in .Obj file) /C (Preserve Comments During Preprocessing) /c (Compile Without Linking) /cgthreads (Code Generation Threads) /clr (Common Language Runtime Compilation) /D (Preprocessor Definitions) /doc (Process Documentation Comments) /E (Preprocess to stdout) /EH (Exception Handling Model) /EP (Preprocess to stdout Without #line Directives) /errorReport (Report Internal Compiler Errors) /execution-charset (Set Execution Character Set) /F (Set Stack Size) Output-File visual studio preprocessor (/F) Options /favor (Optimize for Architecture Specifics) /FC (Full Path of Source Code File in Diagnostics) /fp (Specify Floating-Point Behavior) /FS (Force Synchronous PDB Writes) /GA (Optimize for Windows Application) /Gd, /Gr, /Gv, /Gz (Calling Convention) /Ge (Enable Stack Probes) /GF (Eliminate Duplicate Strings) /GH (Enable _pexit Hook Function) /Gh (Enable _penter Hook Function) /GL (Whole Program Optimization) /Gm (Enable Minimal Rebuild) /GR (Enable Run-Time Type Information) /GS (Buffer Security Check) /Gs (Control Stack Checking Calls) /guard (Enable Control Flow Guard) /GT (Support Fiber-Safe Thread-Local Storage) /Gw (Optimize Global Data) /GX (Enable Exception Handling) /Gy (Enable Function-Level Linking) /GZ (Enable Stack Frame Run-Time Error Checking) /H (Restrict Length of External Names) /HELP (Compiler Command-Line Help) /homeparams (Copy Register Parameters to Stack) /hotpatch (Create Hotpatchable Image) /I (Additional Include Directories) /J (Default char Type Is unsigned) /kernel (Create Kernel Mode Binary) /link (Pass Options to Linker) /LN (Create MSIL Module) /MD, /MT, /LD (Use Run-Time Library) /MP (Build with Multiple Processes) /nologo (Suppress Startup Banner) /O Options (Optimize Code) /openmp (Enable OpenMP 2.0 Support) /P (Preprocess to a File) /Q Options (Low-Level Operations) /RTC (Run-Time Error Checks) /sdl (Enable Additional Security