概述
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所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复