我是靠谱客的博主 义气指甲油,最近开发中收集的这篇文章主要介绍linux下的qt缺少iostream,"iostream not found" on Mac OS,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

I'm desperately trying to port an ancient Qt 4.8 application to Mac OS X 10.10. I already successfully ported it from Windows to Ubuntu 14.04 with almost no problems. However, on Mac I get the error of "iostream file not found". I know this sounds rather like an issue with my clang++/g++ compiler, however a simple hello-world program runs just fine.

I installed Xcode and the command line tools and I can also find iostream under "/usr/include/c++/4.2.1" since 'g++ -v' outputs:

@Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1

Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)

Target: x86_64-apple-darwin14.1.0

Thread model: posix@

However, I don't know why 'clang++ -v' does not show the include path:

@App

最后

以上就是义气指甲油为你收集整理的linux下的qt缺少iostream,"iostream not found" on Mac OS的全部内容,希望文章能够帮你解决linux下的qt缺少iostream,"iostream not found" on Mac OS所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(55)

评论列表共有 0 条评论

立即
投稿
返回
顶部