Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7680 Discussions

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

SergeyKostrov
Valued Contributor II
167 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
166 Views
The Intel C++ Composer XE 2011 support VS2010, VS2008 and VS2005.
SergeyKostrov
Valued Contributor II
167 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.

Reply