Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Compilation error using Intel compiler 2017

shachar-arieli
Beginner
387 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
387 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

0 Kudos
1 Reply
Melanie_B_Intel
Employee
388 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

0 Kudos
Reply