Io 在哪里可以获得g++;戴软呢帽19

Io 在哪里可以获得g++;戴软呢帽19,io,g++,fedora,Io,G++,Fedora,我正在尝试编译我从中下载的xmacro 我在经营Fedora 19 LXDE 问题:我从哪里获得iostream.h?它不见了。我看到一些包包括iostream.h。程序包版本号compat-gcc-34-c++.i686与g++(gcc)4.8.1 20130603不匹配。应该吗 我想当我下载编译器时,应该包括iostream.h 我已经安装了gcc-c++、libx11-devel和libxtxt 问题:我是否得到了正确的C++版本?什么是兼容性GNU编译器集合 $ yum search

我正在尝试编译我从中下载的xmacro

我在经营Fedora 19 LXDE

问题:我从哪里获得iostream.h?它不见了。我看到一些包包括iostream.h。程序包版本号compat-gcc-34-c++.i686与g++(gcc)4.8.1 20130603不匹配。应该吗

我想当我下载编译器时,应该包括iostream.h

我已经安装了gcc-c++、libx11-devel和libxtxt

<强>问题:<强>我是否得到了正确的C++版本?什么是兼容性GNU编译器集合

$ yum search "compat-gcc"
Loaded plugins: langpacks, refresh-packagekit
=========================================== N/S matched: compat-gcc ============================================
compat-gcc-34.i686 : Compatibility GNU Compiler Collection
compat-gcc-34-c++.i686 : C++ support for compatibility compiler
compat-gcc-34-g77.i686 : Fortran 77 support for compatibility compiler

  Name and summary matches only, use "search all" for everything.
我得到:

$ make
g++ -O2  -I/usr/X11R6/include -Wall -pedantic -DVERSION=0.3 xmacroplay.cpp -o xmacroplay -L/usr/X11R6/lib -lXtst -lX11
xmacroplay.cpp:57:22: fatal error: iostream.h: No such file or directory
 #include <iostream.h>
                      ^
compilation terminated.
make: *** [xmacroplay] Error 1




$ yum whatprovides '*/iostream.h'
Loaded plugins: langpacks, refresh-packagekit
compat-gcc-34-c++-3.4.6-29.fc19.i686 : C++ support for compatibility compiler
Repo        : fedora
Matched from:
Filename    : /usr/include/c++/3.4.6/backward/iostream.h



cxxtools-devel-2.2-1.fc19.i686 : Development files for cxxtools
Repo        : fedora
Matched from:
Filename    : /usr/include/cxxtools/iostream.h



gap-devel-4.6.4-2.fc19.i686 : GAP compiler and development files
Repo        : fedora
Matched from:
Filename    : /usr/lib/gap/src/iostream.h



gap-devel-4.6.5-1.fc19.i686 : GAP compiler and development files
Repo        : updates
Matched from:
Filename    : /usr/lib/gap/src/iostream.h



glibmm24-devel-2.36.2-2.fc19.i686 : Headers for developing programs that will use glibmm24
Repo        : fedora
Matched from:
Filename    : /usr/include/giomm-2.4/giomm/iostream.h



marisa-devel-0.2.2-2.fc19.i686 : Development files for marisa
Repo        : fedora
Matched from:
Filename    : /usr/include/marisa/iostream.h



mingw32-glibmm24-2.36.2-2.fc19.noarch : MinGW Windows C++ interface for GTK2 (a GUI library for X)
Repo        : fedora
Matched from:
Filename    : /usr/i686-w64-mingw32/sys-root/mingw/include/giomm-2.4/giomm/iostream.h



mingw64-glibmm24-2.36.2-2.fc19.noarch : MinGW Windows C++ interface for GTK2 (a GUI library for X)
Repo        : fedora
Matched from:
Filename    : /usr/x86_64-w64-mingw32/sys-root/mingw/include/giomm-2.4/giomm/iostream.h



root-cint-5.34.07-1.fc19.i686 : CINT C++ interpreter
Repo        : fedora
Matched from:
Filename    : /usr/lib/root/cint/cint/include/iostream.h



root-cint-5.34.10-1.fc19.i686 : CINT C++ interpreter
Repo        : updates
Matched from:
Filename    : /usr/lib/root/cint/cint/include/iostream.h



me ~ $ g++ --version
g++ (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

me ~ $ 
$make
g++-O2-I/usr/X11R6/include-Wall-pedantic-DVERSION=0.3 xmacroplay.cpp-o xmacroplay-L/usr/X11R6/lib-lXtst-lX11
xmacroplay.cpp:57:22:致命错误:iostream.h:没有这样的文件或目录
#包括
^
编译终止。
make:**[xmacroplay]错误1
$yum whatprovides'*/iostream.h'
加载的插件:langpacks、refresh packagekit
COMPAT-GCC-34-C++-3.4.629FC19.I66:C++支持兼容编译器
回购:软呢帽
匹配自:
文件名:/usr/include/c++/3.4.6/backward/iostream.h
cxxtools-devel-2.2-1.fc19.i686:cxxtools的开发文件
回购:软呢帽
匹配自:
文件名:/usr/include/cxxtools/iostream.h
gap-devel-4.6.4-2.fc19.i686:gap编译器和开发文件
回购:软呢帽
匹配自:
文件名:/usr/lib/gap/src/iostream.h
gap-devel-4.6.5-1.fc19.i686:gap编译器和开发文件
回购协议:更新
匹配自:
文件名:/usr/lib/gap/src/iostream.h
glibmm24-devel-2.36.2-2.fc19.i686:用于开发将使用glibmm24的程序的标题
回购:软呢帽
匹配自:
文件名:/usr/include/giomm-2.4/giomm/iostream.h
marisa-devel-0.2.2-2.fc19.i686:marisa的开发文件
回购:软呢帽
匹配自:
文件名:/usr/include/marisa/iostream.h
MWW32-GLUBMM24-2.32.2-2.FC19.NARCHAR: GTK2的MinGW Windows C++接口(X的GUI库)
回购:软呢帽
匹配自:
文件名:/usr/i686-w64-mingw32/sys root/mingw/include/giomm-2.4/giomm/iostream.h
MIWW64-GLUBMM24-2.32.2-2.FC19.NARCHAR: GTK2的MinGW Windows C++接口(X的GUI库)
回购:软呢帽
匹配自:
文件名:/usr/x86_64-w64-mingw32/sys root/mingw/include/giomm-2.4/giomm/iostream.h
CITT-5.34.07.1.FC19.I66:CITT C++解释器
回购:软呢帽
匹配自:
文件名:/usr/lib/root/cint/cint/include/iostream.h
CITT-5.34.10-1.FC19.I66:CCT+C++解释器
回购协议:更新
匹配自:
文件名:/usr/lib/root/cint/cint/include/iostream.h
me~$g++--版本
g++(GCC)4.8.1 20130603(红帽4.8.1-1)
版权所有(C)2013免费软件基金会。
这是自由软件;有关复制条件,请参见源。没有
担保甚至不是为了适销性或适合某一特定目的。
我~$

<代码> > p> <代码> IoSurviv.H./C>是在以后成为C++标准库的头中的旧的、标准的名称。现代的标准化名称只是
iostream
,没有
.h

最好的解决方案是遍历源代码并将
iostream.h
更改为
iostream
无处不在。不过,如果你试图编译的C++代码真的很古老,你可能会遇到其他问题。另一方面,它可能工作正常,但有一些警告。试试看会发生什么


如果不起作用,您可能会发现“compat-g++”包(具有非常旧的3.4版本的g++)比4.8更好地处理这段旧代码。

使用gcc34命令以旧的3.4版本编译。错误和警告已减少,但未消除。我可能需要在我的c语言技能中增加一个+。