First off, this is similar to the question here Can't compile LAME for iOS but the OP there is apparently dealing with a very different directory structure so the solution there is not relevant to my problem.
I am running configure and getting the error:
configure: error: C++ preprocessor "/usr/bin/cpp" fails sanity check
I managed to get configure to look at a hopefully more useful cpp with the command
./configure CC=mpicc CXX=mpicc CPP=/usr/bin/cpp CXXCPP=/usr/bin/cpp
but it has the same problem with /usr/bin/cpp that it has with /lib/cpp.
I have read somewhere that this means I do not have a C++
compiler installed, but it is clear that I do (gcc
and mpicc
).
Any ideas what the problem is?
BTW, if it matters I am working with gcc 4.8.5
and mpich 3.0.x
.