- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Having trouble with the error message
Command-line error: old for-init compatibility mode cannot be used with C++11 mode
We are moving an existing application compiled for win32 on an XP box with ver 11.1.067 to win10 with ver 2017.1.143
The icproj file copied across and converted on opening - apparently sucessfully
but NOTHING will compile - we just get the above error message.
Any assistance would be appreciated
=G=
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also, the C++11 option was turned off
G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. Hope this helps.
--Melanie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've seen this old Microsoft extension used in the context of break. It becomes impossible to know whether a variable takes outer or inner scope. If you have not in fact used a variable defined inside the for after leaving the for scope, a working example of your problem would be needed.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page