什么是g ++的-pthread equiv在clang中? [英] What is g++'s -pthread equiv in clang?
本文介绍了什么是g ++的-pthread equiv在clang中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从 g++ 切换到 clang
I'm switching over from g++ to clang
但是,在 g++ 中,我有 -pthread 标志,clang 似乎无法识别.
however, in g++, I have the -pthread flag, which clang does not seem to recognize.
clang 中的等价物是什么?
What is the equiv in clang?
我的 clang 版本是 2010 年 3 月 5 日从 svn 提取的.
My clang build is pulling from svn on March 5 2010.
推荐答案
Clang 支持 -pthread
.可能是最新版本,因此请更新并重试.
Clang supports -pthread
. May be in the latest builds, so update it and try again.
这篇关于什么是g ++的-pthread equiv在clang中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文