- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What if on some project a support for many IDEs or C/C++ compilers is needed?
In case of Microsoft's Visual Studios the following macros could be used:
...
#if _MSC_VER < 1200
#pragma message ( "*** Compiling with Visual C++ v5.0 ***" )
#endif
#if _MSC_VER == 1200
#pragma message ( "*** Compiling with Visual Studio 98 ***" )
#endif
#if _MSC_VER == 1300
#pragma message ( "*** Compiling with Visual Studio .NET ***" )
#endif
#if _MSC_VER == 1310
#pragma message ( "*** Compiling with Visual Studio 2003 ***" )
#endif
#if _MSC_VER == 1400
#pragma message ( "*** Compiling with Visual Studio 2005 ***" )
#endif
#if _MSC_VER == 1500
#pragma message ( "*** Compiling with Visual Studio 2008 ***" )
#endif
#if _MSC_VER == 1600
#pragma message ( "*** Compiling with Visual Studio 2010 ***" )
#endif
...
It would be nice to have a complete list of macros with version codes for as many as possible
versions of Intel C/C++ compiler.
For a cross platform software development it would be an invaluable information.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My question was related toIntel C/C++ compiler __ICC macro for different versions.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page