免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 978 | 回复: 2
打印 上一主题 下一主题

如何在SUSE9.0 OR REDHAT9.0 下安装Redhat5.1 下的软件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-02-01 22:26 |只看该作者 |倒序浏览
各位高手,谁能帮我一个忙,我将会万分感激:

我要装一个软件,这个软件是在RedHat5.1下开发测试通过的,是g++开发的。可是在SUSE9.0 OR REDHAT9.0 下安装,怎么都装不上,错误太多。我不知道是那个连接库出现了问题。我想,主要问题是是g++在不同的LINUX版本里面的库不同。而且在SUSE &REDHAT 9.0下出现的错误一样阿!
我把期中的一个错误提示出来:
In file included from /usr/include/g++/backward/iostream.h:31,
                 from SCL/Object.h:38,
                 from SCL/StrClass.h:32,
                 from MGenTool/Member.h:31,
                 from MGenTool/FunctMember.h:30,
                 from MGenTool/FunctMember.cc:28:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X>; header for the <X.h>; header for C++ includes, or <sstream>; instead of the deprecated header <strstream.h>;. To disable this warning use -Wno-deprecated.
In file included from MGenTool/Module.h:33,
                 from MGenTool/FunctMember.cc:30:
/usr/include/g++/backward/fstream.h:36: error: `ofstream' is already declared
   in this scope
/usr/include/g++/backward/fstream.h:36: error: using declaration `ofstream'
   introduced ambiguous type `ofstream'
MGenTool/FunctMember.cc:143: error: prototype for `void
   FunctArg::cplusArg(std:fstream&' does not match any in class `FunctArg'
MGenTool/FunctMember.h:95: error: candidate is: virtual void
   FunctArg::cplusArg(ofstream&
MGenTool/FunctMember.cc:165: error: prototype for `void
   FunctArg::cplusDecl(std:fstream&' does not match any in class `FunctArg'
MGenTool/FunctMember.h:97: error: candidate is: virtual void
   FunctArg::cplusDecl(ofstream&

我一开始以为是关于字符类的库文件在新版本下不一样,可我改变以后,错误一样阿!!!!!

那位高手能帮忙阿
my e-mail: aa_sszz@yahoo.com

论坛徽章:
0
2 [报告]
发表于 2005-02-02 00:21 |只看该作者

如何在SUSE9.0 OR REDHAT9.0 下安装Redhat5.1 下的软件

原帖由 "aa_sszz" 发表:
各位高手,谁能帮我一个忙,我将会万分感激:

我要装一个软件,这个软件是在RedHat5.1下开发测试通过的,是g++开发的。可是在SUSE9.0 OR REDHAT9.0 下安装,怎么都装不上,错误太多。我不知道是那个连接库出现了?.........

rh5下的g++比其他两个版本低很多哦
另外rh某个版本的gcc是自己开发的不是官方的gcc,应该用kgcc来编译,不知是不是这个,偶就不知道了

论坛徽章:
0
3 [报告]
发表于 2005-02-03 17:34 |只看该作者

如何在SUSE9.0 OR REDHAT9.0 下安装Redhat5.1 下的软件

Hi,
thank you very much for your reply!

I have tried many times!
I found it can be installed correctly in RedHat7.3( gcc-2.95)!
But It cann't be installed in RedHat9.0 & Suse9.2!
So, I don't know what's the problem with the resource code!
I think the main problem is about the library of <iostream>; or "string.h" is different in gcc2.95 and gcc3.3.5!
But, I don't know how to do it!
Can I install it in RedHat7.3, after that, I update the RedHat7.3 to 9.0?
Now, I dare n't do this way, Because I have reinstalled two Linux, Suse9.2 and RedHat 7.3!
In order to install my code, I have already installed the Linux system many times! I am crazy!

Suse9.2 is much better than Redhat 9.0! It is very easy to start work in Linux and to set the hardware!

But, I cann't install my code produced under RedHat5.1!

Who can help me?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP