Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7651 Discussions

Compilation error using Intel compiler 2017

shachar-arieli
Beginner
152 Views

Hi,

I am getting the following error while compiling a project using Intel compiler (parallel studio 2017 rev 4)

"old for-init compatibility mode cannot be used with C++11 mode"

The project is compiling fine when using c++ compiler 2015.

Any idea on what i can do to correct this issue?

0 Kudos
1 Solution
Melanie_B_Intel
Employee
152 Views

This diagnostic is given for the /Zc:forScope command line option.  Refer to the msdn page for details about the option: https://msdn.microsoft.com/en-us/library/84wcsx8x.aspx

The remedy is to remove the command line option.  

--Melanie

View solution in original post

1 Reply
Melanie_B_Intel
Employee
153 Views

This diagnostic is given for the /Zc:forScope command line option.  Refer to the msdn page for details about the option: https://msdn.microsoft.com/en-us/library/84wcsx8x.aspx

The remedy is to remove the command line option.  

--Melanie

Reply