大佬教程收集整理的这篇文章主要介绍了c – OS X clang -pthread,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
使用GCC我知道使用-pthread设置适当的编译器/链接器选项,但我不确定OS X与clang.
air:~ jose$clang++ -c test.cpp -pthread air:~ jose$clang++ -o test -pthread test.o clang: warning: argument unused during compilation: '-pthread' air:~ jose$g++ -c test.cpp -pthread air:~ jose$g++ -o test -pthread test.o
$clang -c x.cpp $clang -pthread -c x.cpp $clang -o x x.o $clang -pthread -o x x.o clang: warning: argument unused during compilation: '-pthread' $ $clang --version Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix $
以上是大佬教程为你收集整理的c – OS X clang -pthread全部内容,希望文章能够帮你解决c – OS X clang -pthread所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。