Chinaunix

标题: 如何在SUSE9.0 OR REDHAT9.0 下安装Redhat5.1 下的软件 [打印本页]

作者: aa_sszz    时间: 2005-02-01 22:26
标题: 如何在SUSE9.0 OR REDHAT9.0 下安装Redhat5.1 下的软件
各位高手,谁能帮我一个忙,我将会万分感激:

我要装一个软件,这个软件是在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
作者: caustic    时间: 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来编译,不知是不是这个,偶就不知道了
作者: aa_sszz    时间: 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?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2