试图在mac上安装openMP/Clang

 tantyana428_673 发布于 2023-02-07 19:14

我在我的mac上安装openMP时遇到问题(10.9.1).

我想要遵循的安装说明如下:http://clang-omp.github.io/

我按照以下方向开始使用openMP支持成功构建了clang:http://clang.llvm.org/get_started.html

在这些步骤之后,我的构建文件位于此目录下/ Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build

现在我想使用这个新安装的编译器,我试图使用这些命令将它添加到我的路径:

$ export PATH=/install/prefix/bin:$PATH
$ export C_INCLUDE_PATH=/install/prefix/include:/Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build/include:$C_INCLUDE_PATH
$ export CPLUS_INCLUDE_PATH=/install/prefix/include:/Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build/include:$CPLUS_INCLUDE_PATH
$ export LIBRARY_PATH=/install/prefix/lib:/Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build/lib:$LIBRARY_PATH
$ export DYLD_LIBRARY_PATH=/install/prefix/lib:/Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build/lib:$DYLD_LIBRARY_PATH

但是当我尝试使用-fopenmp编译文件时,我得到了例子:

g++ -fopenmp -O -c ParamsCycleManagement.cpp -o ParamsCycleManagement.o
clang: warning: argument unused during compilation: '-fopenmp'
In file included from ParamsCycleManagement.cpp:22:
In file included from ./ParamsCycleManagement.h:33:
In file included from ./ExtendCycle.h:26:
In file included from ./ReadPairFilter.h:36:
./ScoredSeqCollectionBwt.h:31:10: fatal error: 'omp.h' file not found

我是错误地将它添加到我的路径还是做错了什么?谢谢你的帮助.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有