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

Cross platform software development - support for IDEs & C/C++ compilers

SergeyKostrov
Valued Contributor II
340 Views

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.

0 Kudos
2 Replies
Om_S_Intel
Employee
339 Views
The Intel C++ Composer XE 2011 support VS2010, VS2008 and VS2005.
0 Kudos
SergeyKostrov
Valued Contributor II
340 Views
The Intel C++ Composer XE 2011 support VS2010, VS2008 and VS2005.


My question was related toIntel C/C++ compiler __ICC macro for different versions.

0 Kudos
Reply