__INTEL_COMPILER for v7.1

__INTEL_COMPILER for v7.1

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.

--mark

>type iclver.cpp
#include
using namespace std;

int main()
{
#if defined(__INTEL_COMPILER_BUILD_DATE)
cout << "icl build date is " << __INTEL_COMPILER_BUILD_DATE << endl;
#endif
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.

-out:iclver.exe

Z:NOBACKUPquadtests>iclver
icl build date is 20090421

Login to leave a comment.