Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SergeyKostrov
Valued Contributor II
88 Views

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

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
88 Views

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