jjzjj

c++ - 如何在 OS X 中包含 omp.h?

我是C新手,在OSX中编译我的代码时遇到了一些问题。我在Eclipse中编写了很多Java代码,并使用终端来编译我的代码。但是现在我正在学习openMP并且遇到了麻烦。首先我下载了​​Xcode来编写openMP代码,但它无法识别.然后我安装了g++.当我输入g++-v进入终端我得到这个:Configuredwith:--prefix=/Applications/Xcode.app/Contents/Developer/usr--with-gxx-include-dir=/usr/include/c++/4.2.1AppleLLVMversion5.1(clang-503.0.40)(

c++ - 如何在 OS X 中包含 omp.h?

我是C新手,在OSX中编译我的代码时遇到了一些问题。我在Eclipse中编写了很多Java代码,并使用终端来编译我的代码。但是现在我正在学习openMP并且遇到了麻烦。首先我下载了​​Xcode来编写openMP代码,但它无法识别.然后我安装了g++.当我输入g++-v进入终端我得到这个:Configuredwith:--prefix=/Applications/Xcode.app/Contents/Developer/usr--with-gxx-include-dir=/usr/include/c++/4.2.1AppleLLVMversion5.1(clang-503.0.40)(