Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

icc compile error on OS X

Lei_Z_
Beginner
345 Views
The code: -------------------------- #include int main() { #ifdef __clang_version__ printf("%s\n", __clang_version__); #endif } --------------------------- __clang_version__ is a builtin macro defined by clang, and is supposed to be irrelevant to icc. But icc emits a compile error when compiling this code: test.c(5): error: extra text after expected end of number printf("%s\n", __clang_version__); ^ This looks like a bug. Specs: OS X 10.10.3 icc 15.0.2
0 Kudos
0 Replies
Reply