- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Linux 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
> icpc -V
Intel C++ Intel 64 Compiler XE for applications running on Intel 64, Version 12.0.4.191 Build 20110427
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
-----------------------------
// File eee.cpp
#include
int main()
{
std::cout << __INTEL_COMPILER << std::endl;
return 0;
}
------------------------------
> icpc eee.cpp
> ./a.out
1200
Excepted output of a.out is 1204, but actual 1200
Alex
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For this macro to do as you want, the header file would have to be updated with every release.
You could try the macro __INTEL_COMPILER_BUILD_DATE .
You could try the macro __INTEL_COMPILER_BUILD_DATE .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which header file should be updated with every release?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not sure; at any rate, I meant that the compiler vendor would need to do the update, not the user. It is also possible that some of these are built-in macros, so they may not be accessible through a header file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It seems that __INTEL_COMPILER is built-in macros
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page