| November 12, 2008 2:00 PM PST | |
Problem : The compiler issues the message if runtime checks are enabled with /RTCx or /GZ(deprecated) and an optimization option are used together. Runtime checks are only performed on unoptimized code, so the compiler will disable all optimization options.
Intel(R) C++ Compiler XE for applications running on IA-32, Version 12.0.4.196 Build 20110427
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
icl: warning #10182: disabling optimization; runtime debug checks enabled
hello.cpp
Resolution : Runtime checks should only be used in development state. For release builds the option should not be used. Because of the included runtime checks the code will be larger and slower than a build with only /Od.
So use for release builds:
>icl /fast hello.cpp
and for development builds:
>icl /RTC1 hello.cpp
#include <iostream>
using namespace std;
void main(){
cout << "Hello World" << endl;
}
>icl /RTC1 /fast hello.cppIntel(R) C++ Compiler XE for applications running on IA-32, Version 12.0.4.196 Build 20110427
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
icl: warning #10182: disabling optimization; runtime debug checks enabled
hello.cpp
Resolution : Runtime checks should only be used in development state. For release builds the option should not be used. Because of the included runtime checks the code will be larger and slower than a build with only /Od.
So use for release builds:
>icl /fast hello.cpp
and for development builds:
>icl /RTC1 hello.cpp
Do you need more help?
This article applies to: Intel® C++ Compiler for Linux* Knowledge Base, Intel® C++ Compiler for Mac OS X* Knowledge Base, Intel® C++ Compiler for Windows* Knowledge Base, Intel® Parallel Composer Knowledge Base
For more complete information about compiler optimizations, see our Optimization Notice.
Comments (3) 
| September 8, 2010 6:04 AM PDT
liming huang | I am getting the same warning message when it automatically parallelize my code. Could you tell me how to fix this problem? |
| September 9, 2010 8:09 PM PDT
Andrew Li | I use the ICC in vs 2008. And when I complied my code with ICC, I came across this warning. So could you tell me the cause of this problem? Thank you so much! |
Trackbacks (0)
Leave a comment 
To obtain technical support, please go to Software Support.
Author
Ganesh Rao (Intel)
| ||
Alexander Weggerle (Intel)
|
Tags for this Page



Natashs Raffa
Thanks