- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the Intel C++ Windows compiler is there a compiler command that will output the list of predefined macros to the console window ?
- Tags:
- CC++
- Development Tools
- General Support
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
There is a flag -dM -E which will give details of all macros. We generally use this flag and specify the empty file in Windows NUL.
You can also get the more detailed information regarding ISO Standard Predefined Macros and some Additional Macros from the below link:
All these resources will help you to find the Predefined Macros.
Warm Regards,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Deshmukh, Abhishek (Intel) wrote:Hi,
There is a flag -dM -E which will give details of all macros. We generally use this flag and specify the empty file in Windows NUL.
You can also get the more detailed information regarding ISO Standard Predefined Macros and some Additional Macros from the below link:
https://software.intel.com/en-us/cpp-compiler-developer-guide-and-refere...
https://software.intel.com/en-us/cpp-compiler-developer-guide-and-refere...
All these resources will help you to find the Predefined Macros.
Warm Regards,
Abhishek
icl -dM -E NUL
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.1.216 Build 20200306
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.
icl: command line warning #10006: ignoring unknown option '/dM'
NUL
#line 1 "NUL"
Your answer is not working for the Intel C++ Windows compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We also got the same error with ICL and ICX compiler and we have reported it to the concerned team.
Thank you for your finding. Meanwhile, you can go through the links that I have provided for getting more information regarding predefined macros.
We will get back to you soon.
Warm Regards,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried icl /E test.c?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Viet Hoang (Intel) wrote:Have you tried icl /E test.c?
icl /E test.c
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.1.216 Build 20200306
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.
test.c
Catastrophic error: cannot open source file "test.c"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I misunderstood that you wanted to see the macros of your program. You can icl /E /QdM on a dummy testcase.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let us know if this is still an issue. Otherwise, we will close it.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We will no longer respond to this thread.
If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
Thanks,

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page