安装DDD-致命错误
installing ddd - fatal error
,所以我一直在尝试安装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,但是我仍然遇到相同的错误。有人知道如何解决这个问题或可能是什么问题?
看来您正在编译C 程序,但是将.c
文件传递给c++
编译器。您将conftest.c
文件传递给C 编译器,它必须是confest.cpp
。
configure:2684: c++ -o conftest -g -O2 conftest.C 1>&5
这必须是
configure:2684: c++ -o conftest -g -O2 conftest.cpp 1>&5
和
fatal error: 'iostream.h' file not found #include <iostream.h>
1 error generated.
对于上述错误,更改您的代码
到#included <iostream>
而不是#include <iostream.h>
只需打开您在DDD目录中配置文件,然后添加以下
`<iostream>
using namespace std;
`这应该解决此错误
相关文章:
- CMake项目Boost库错误:Boost/config/compiler/gcc.hpp:165:10:致命错误:cs
- 用MacOS Mojave编译C++:致命错误:mpi.h:没有这样的文件或目录
- 如何修复valgrind启动时的致命错误(与libc6-dbg和libc6-dbg:i386连接)
- 在Raspbian上编译pybind11测试用例时出现致命错误
- 致命错误:特征/密集:VSC 中没有此类文件或目录
- v8::HandleScope::CreateHandle() # 中的致命错误无法在没有 HandleScope 的情
- macOS 致命错误:sys/_types/_int8_t.h:没有此类文件或目录 #include < sys/_types/_int8_t.h>
- /usr/include/c++/7/cstdlib:75:15:致命错误:stdlib.h:没有这样的文件或目录 #i
- 代码::块C++使用 MacOS 编译 Mojave : 致命错误: sys/cdefs.h: 没有这样的文件或目录
- 致命错误:找不到'boost/uuid/uuid.hpp'文件
- 致命错误 C1001 :vs2017 15.8.4 的内部错误(编译器文件"msc1.cpp",第
- 链接:致命错误LNK1104:无法打开文件"python37_d.lib"
- 造成致命错误:boost/fusion/iterator/equal_to.hpp 没有这样的文件或目录
- 多次调用本机方法时出现致命错误
- 在 Windows 10 下使用 GTest 的 CMake - 致命错误 LNK1104:无法打开文件"gtest.lib",但存在调试"gtestd.lib"
- NMAKE:致命错误 U1077:cl.exe 和 nmake.exe 返回代码'0x2'
- 【MacOSX 10.15.1】使用 odb 生成数据库,致命错误:wchar.h:没有这样的文件或目录 #include < wchar.h>
- 未知C++错误:致命错误:glibc检测到无效的stdio句柄
- pip install uwsgi 失败,出现 /usr/local/include/string/string.h:7:10:致命错误:找不到'sstream'文件?
- 安装DDD-致命错误