Hello,
I am trying to upgrade a project to a newer compiler stack and language standard. I end up with some strange errors. I have this command line:
/opt/intel/compilers_and_libraries_2016.4.210/mac/bin/intel64/icpc -D_REENTRANT -DHAVE_GCCVISIBILITY -DMACOSX \ -mmacosx-version-min=10.11 -clangxx-name=/usr/local/llvm-3.9.1/bin/clang++ -std=c++11 -fno-omit-frame-pointer \ -fPIC -fvisibility=hidden -fmath-errno -qopenmp -fp-model precise -g -Wall -Wno-deprecated -pthread -o foo.o -c foo.cpp
It returns:
In file included from foo.cpp(9): bar.hpp(16): catastrophic error: cannot open source file "iostream" #include <iostream> ^ compilation aborted for foo.cpp (code 4)
It builds fine if built for macOS 10.8 and gnu++98.
Another problem that I am facing is that I can't get LLVM functionality, for example llvm::dyn_cast is unknown no matter what I include.
Has anybody faced similar problems?
Thread Topic:
Question