I'm just working on Intel 7.1 compatibility for the STLSoft libraries, and it seems that __INTEL_COMPILER is still defined as 700.

Does anyone know of any other symbol that is different between 7.0 and 7.1, that I could therefore use for discriminating between the two.

The best I've come up with is to specify -Qvc7.1 and then test if __INTEL_COMPILER is 700 and _MSC_VER is 1310, but obviously this is not a good solution.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

See if you can use __INTEL_COMPILER_BUILD_DATE instead as shown in the example below.


>type iclver.cpp
using namespace std;

int main()
cout << "icl build date is " << __INTEL_COMPILER_BUILD_DATE << endl;
return 0;
>icl iclver.cpp
Intel C++ Compiler for applications running on IA-32, Version 11.1 Build 20090421 Package ID: composer.061
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.


icl build date is 20090421

Leave a Comment

Please sign in to add a comment. Not a member? Join today