所以我一直在尝试安装DDD。我在 Mac OS X 10.9(Mavericks) 上,并且安装了最新的 Xcode。每当我运行我的配置文件时,我得到的最后一件事是:
checking whether c++ accepts -g... yes
checking whether the C++ compiler (c++) compiles a simple program... no
configure: error: You must set the environment variable CXX to a working
C++ compiler. Also check the CXXFLAGS settings.
See the file 'config.log' for further diagnostics.
每当我检查 config.log 文件时,我都会得到:
configure:2684: c++ -o conftest -g -O2 conftest.C 1>&5
configure:2678:10: fatal error: 'iostream.h' file not found #include <iostream.h>
1 error generated.
configure: failed program was:
#line 2677 "configure"
#include "confdefs.h"
#include <iostream.h>
int main() {
cout << "hello, world!";
; return 0; }
我已经从 sourcefourge 下载了 gcc 并再次安装了 gcc-4.9,但我仍然遇到同样的错误。任何人都知道如何解决这个问题或可能是什么问题?