Quantcast
Channel: Intel® C++-Compiler
Viewing all articles
Browse latest Browse all 1665

c++ compiler error on Mac OS X 10.9

$
0
0

When I compile the following hello world code using icpc on Mac OS X 10.9

#include<iostream>

using namespace std;

int main()

{

  cout<<"Hello World!"<<endl;

  return 0;

}

I get the following error message:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stddef.h(29): error: expression preceding parentheses of apparent call must have (pointer-to-) function type

  #if !defined(_PTRDIFF_T) || __has_feature(modules)

                              ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stddef.h(31): error: function call is not allowed in a constant expression

  #if !__has_feature(modules)

       ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stddef.h(37): error: function call is not allowed in a constant expression

  #if !defined(_SIZE_T) || __has_feature(modules)

                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stddef.h(48): error: expression preceding parentheses of apparent call must have (pointer-to-) function type

       !defined(_RSIZE_T)) || __has_feature(modules)

                              ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stddef.h(50): error: function call is not allowed in a constant expression

  #if !__has_feature(modules)

       ^

The version I used is Intel Composer XE 13.0.3 20130606.


Viewing all articles
Browse latest Browse all 1665

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>