Compiler Options In Dev C++
- Compile In Dev C++
- Compiler Options In Dev C Windows 10
- Dev C Compiler
- Dev C++ Compiler Options
- Dev C++ Compiler Setup
This table contains an alphabetical list of compiler options. For a list of compiler options by category, see the Compiler options listed by category article. /auto-tune-dish-tv.html.
Jan 06, 2006 Dev-cpp - compiler options I just recently switched to Dev-Cpp 4.9.9.2 and I'm wondering how I can force the compiler to conform to ANSI C and such things. As it is now, it lets me get away with quite a lot of strange things. Options, that you specify when you invoke the compiler, override installation defaults and compiler options that are specified through a #pragma options directive. The compiler option defaults that are supplied by IBM can be changed to other selected defaults when z/OS® XL C/C is installed. For further information, see Customizing default. Compiler Options.; 2 minutes to read; In this article. Cl.exe is a tool that controls the Microsoft C (MSVC) C and C compilers and linker. Cl.exe can be run only on operating systems that support Microsoft Visual Studio for Windows.

Compiler options
Option | Purpose |
---|---|
@ | Specifies a response file. |
/? | Lists the compiler options. |
/AI | Specifies a directory to search to resolve file references passed to the #using directive. |
/analyze | Enable code analysis. |
/arch | Specifies the architecture for code generation. |
/await | Enable coroutines (resumable functions) extensions. |
/bigobj | Increases the number of addressable sections in an .obj file. |
/C | Preserves comments during preprocessing. |
/c | Compiles without linking. |
/cgthreads | Specifies number of cl.exe threads to use for optimization and code generation. |
/clr | Produces an output file to run on the common language runtime. |
/constexpr | Control constexpr evaluation at compile time. |
/D | Defines constants and macros. |
/diagnostics | Controls the format of diagnostic messages. |
/doc | Process documentation comments to an XML file. |
/E | Copies preprocessor output to standard output. |
/EH | Specifies the model of exception handling. |
/EP | Copies preprocessor output to standard output. |
/errorReport | Deprecated. Error reporting is controlled by Windows Error Reporting (WER) settings. |
/execution-charset | Set the execution character set. |
/experimental:module | Enables experimental module support. |
/experimental:preprocessor | Enables experimental conforming preprocessor support. |
/F | Sets stack size. |
/favor | Produces code optimized for a specific x64 architecture. Or, for the specific micro-architectures in both the AMD64 and EM64T architectures. |
/FA | Creates a listing file. |
/Fa | Sets the listing file name. |
/FC | Display full path of source code files passed to cl.exe in diagnostic text. |
/Fd | Renames program database file. |
/Fe | Renames the executable file. |
/FI | Preprocesses the specified include file. |
/Fi | Sets the preprocessed output file name. |
/Fm | Creates a map file. |
/Fo | Creates an object file. |
/fp | Specify floating-point behavior. |
/Fp | Specifies a precompiled header file name. |
/FR /Fr | Generates browser files. /Fr is deprecated. |
/FS | Forces serialization of all writes to the program database (PDB) file through MSPDBSRV.EXE. |
/FU | Forces the use of a file name as if it had been passed to the #using directive. |
/Fx | Merges injected code with source file. |
/GA | Optimizes code for Windows application. |
/Gd | Uses the __cdecl calling convention (x86 only). |
/Ge | Deprecated. Activates stack probes. |
/GF | Enables string pooling. |
/GH | Calls hook function _pexit . |
/Gh | Calls hook function _penter . |
/GL | Enables whole program optimization. |
/Gm | Deprecated. Enables minimal rebuild. |
/GR | Enables run-time type information (RTTI). |
/Gr | Uses the __fastcall calling convention (x86 only). |
/GS | Buffers security check. |
/Gs | Controls stack probes. |
/GT | Supports fiber safety for data allocated using static thread-local storage. |
/guard:cf | Adds control flow guard security checks. |
/Gv | Uses the __vectorcall calling convention. (x86 and x64 only) |
/Gw | Enables whole-program global data optimization. |
/GX | Deprecated. Enables synchronous exception handling. Use /EH instead. |
/Gy | Enables function-level linking. |
/GZ | Deprecated. Same as /RTC1. |
/Gz | Uses the __stdcall calling convention (x86 only). |
/H | Deprecated. Restricts the length of external (public) names. |
/HELP | Lists the compiler options. |
/homeparams | Forces parameters passed in registers to be written to their locations on the stack upon function entry. This compiler option is only for the x64 compilers (native and cross compile). |
/hotpatch | Creates a hot-patchable image. |
/I | Searches a directory for include files. |
/J | Changes the default char type. |
/JMC | Supports native C++ Just My Code debugging. |
/kernel | The compiler and linker will create a binary that can be executed in the Windows kernel. |
/LD | Creates a dynamic-link library. |
/LDd | Creates a debug dynamic-link library. |
/link | Passes the specified option to LINK. |
/LN | Creates an MSIL module. |
/MD | Creates a multithreaded DLL using MSVCRT.lib. |
/MDd | Creates a debug multithreaded DLL using MSVCRTD.lib. |
/MP | Compiles multiple source files by using multiple processes. |
/MT | Creates a multithreaded executable file using LIBCMT.lib. |
/MTd | Creates a debug multithreaded executable file using LIBCMTD.lib. |
/nologo | Suppresses display of sign-on banner. |
/O1 | Creates small code. |
/O2 | Creates fast code. |
/Ob | Controls inline expansion. |
/Od | Disables optimization. |
/Og | Deprecated. Uses global optimizations. |
/Oi | Generates intrinsic functions. |
/openmp | Enables the #pragma omp directive in source code. |
/Os | Favors small code. |
/Ot | Favors fast code. |
/Ox | A subset of /O2 that doesn't include /GF or /Gy. |
/Oy | Omits frame pointer (x86 only). |
/P | Writes preprocessor output to a file. |
/permissive- | Set standard-conformance mode. |
/Qfast_transcendentals | Generates fast transcendentals. |
/QIfist | Deprecated. Suppresses _ftol when a conversion from a floating-point type to an integral type is required (x86 only). |
/Qimprecise_fwaits | Removes fwait commands inside try blocks. |
/QIntel-jcc-erratum | Mitigates the performance impact of the Intel JCC erratum microcode update. |
/Qpar (Auto-Parallelizer) | Enables automatic parallelization of loops that are marked with the #pragma loop() directive. |
/Qsafe_fp_loads | Uses integer move instructions for floating-point values and disables certain floating point load optimizations. |
/Qspectre | Specifies compiler generation of instructions to mitigate certain Spectre variant 1 security vulnerabilities. |
/Qspectre-load | Specifies compiler generation of serializing instructions to mitigate Spectre security vulnerabilities based on load instructions. |
/Qspectre-load-cf | Specifies compiler generation of serializing instructions to mitigate Spectre security vulnerabilities based on control flow instructions that load memory. |
/Qvec-report (Auto-Vectorizer Reporting Level) | Enables reporting levels for automatic vectorization. |
/RTC | Enables run-time error checking. |
/sdl | Enables additional security features and warnings. |
/showIncludes | Displays a list of include files during compilation. |
/source-charset | Set source character set. |
/std | C++ standard version compatibility selector. |
/Tc | Specifies a C source file. |
/TC | Specifies all source files are C. |
/Tp | Specifies a C++ source file. |
/TP | Specifies all source files are C++. |
/U | Removes a predefined macro. |
/u | Removes all predefined macros. |
/utf-8 | Set source and execution character sets to UTF-8. |
/V | Deprecated. Sets the .obj file version string. |
/validate-charset | Validate UTF-8 files for only compatible characters. |
/vd | Suppresses or enables hidden vtordisp class members. |
/vmb | Uses best base for pointers to members. |
/vmg | Uses full generality for pointers to members. |
/vmm | Declares multiple inheritance. |
/vms | Declares single inheritance. |
/vmv | Declares virtual inheritance. |
/volatile | Selects how the volatile keyword is interpreted. |
/w | Disables all warnings. |
/W0, /W1, /W2, /W3, /W4 | Sets which warning level to output. |
/w1, /w2, /w3, /w4 | Sets the warning level for the specified warning. |
/Wall | Enables all warnings, including warnings that are disabled by default. |
/wd | Disables the specified warning. |
/we | Treats the specified warning as an error. |
/WL | Enables one-line diagnostics for error and warning messages when compiling C++ source code from the command line. |
/wo | Displays the specified warning only once. |
/Wp64 | Obsolete. Detects 64-bit portability problems. |
/Wv | Displays no warnings introduced after the specified version of the compiler. |
/WX | Treats all warnings as errors. |
/X | Ignores the standard include directory. |
/Y- | Ignores all other precompiled-header compiler options in the current build. |
/Yc | Creates a precompiled header file. |
/Yd | Deprecated. Places complete debugging information in all object files. Use /Zi instead. |
/Yl | Injects a PCH reference when creating a debug library |
/Yu | Uses a precompiled header file during build. |
/Z7 | Generates C 7.0-compatible debugging information. |
/Za | Disables language extensions. |
/Zc | Specifies standard behavior under /Ze./Za, /Ze (Disable Language Extensions) |
/Ze | Deprecated. Enables language extensions. |
/Zf | Improves PDB generation time in parallel builds. |
/Zg | Removed in Visual Studio 2015. Generates function prototypes. |
/ZH | Specifies MD5, SHA-1, or SHA-256 for checksums in debug info. |
/ZI | Includes debug information in a program database compatible with Edit and Continue. |
/Zi | Generates complete debugging information. |
/Zl | Removes default library name from .obj file (x86 only). |
/Zm | Specifies the precompiled header memory allocation limit. |
/Zo | Generates enhanced debugging information for optimized code. |
/Zp | Packs structure members. |
/Zs | Checks syntax only. |
/ZW | Produces an output file to run on the Windows Runtime. |
- I just recently switched to Dev-Cpp 4.9.9.2 and I'm wondering how I can force the compiler to conform to ANSI C and such things. As it is now, it lets me get away with quite a lot of strange things.
- Nov 29, 2016 Delphi is the ultimate IDE for creating cross-platform, natively compiled apps. Are you ready to design the best UIs of your life? Our award winning VCL framework for Windows and FireMonkey (FMX) visual framework for cross-platform UIs provide you with the foundation for intuitive, beautiful.
See also
MSVC compiler options
MSVC compiler command-line syntax
hello altogether,
my name is Wolfram Pagels, Berlin, Germany
my status is :retired but enthusiastic c++-fan;

I use Dev-C++ since 3 month ago; in the 70th I programmed in Fortran;
after a long break I enjoy to learn c++11;
e.g.: the day before yesterday I got the following message from Dev-C++:
My second question to you: * h o w to enable (these) options at my installed and running actual mingw compiler as part of Dev-C++ IDE ?
Thank you in advance for your time,
Compile In Dev C++
yours sincerely
Compiler Options In Dev C Windows 10
Dev C Compiler
- 4 Contributors
- forum 3 Replies
- 3,592 Views
- 23 Hours Discussion Span
- commentLatest Postby Ancient DragonLatest Post
Dev C++ Compiler Options
mike_2000_172,669
Well, the answer to your problem (but not to your question) is to change your IDE. Dev-C++ is far too old to support C++11. The MinGW GCC version that ships with Dev-C++ is version 3.4.2, which is really old. Decent support for C++11 starts roughly from 4.6.0, but since it is still experimental, the newer the better. Currently, you can get 4.7.1 version through '>TDM-GCC ports. I recommend switching to '>CodeBlocks, which you can download as an installer that includes TDM-GCC 4.7.1. That should allow you to have decent C++11 support.
Dev C++ Compiler Setup
As for setting compiler options, you typically have to navigate the 'Build Configuration' or 'Project Properties' or similar panels. Usually, you will find a place to put 'custom compiler options' where you can place the exact command-line compiler option (like -std=c++11
), that is, if you can't find a checkbox for the particular option you need.