This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc 3.2 & gcc2.95.3


Hi,

Thanks for the previous answer.

Now, I've managed to install gcc2.95.3 on RedHat8.0
(gcc3.2 is still in the system). 
In configuring gcc2.95.3, I use (my srcdir =
gcc-2.95.3, objdir = gcc2.95.3) :
./gcc-2.95.3/configure --prefix=/prg/gcc2.95.3
--program-suffix=-2.95 --disable-checking
--host=i386-redhat-linux --enable-__cxa_atexit
to configure it. The gcc2.95.3 
It works fine until the installation steps are
finished, then I use alias to change my g++ to use
gcc2.95.3 (so now, g++ -v results in gcc2.95.3). 

But, whenever I tried to compile things, e.g.:
LEDA3.8, it still use the gcc3.2 include & library
files. So, it still gives me the same error as before
(pls. see below). Here, it still use
/usr/include/c++/3.2, not /prg/gcc2.95.3/include
(where the include files for gcc2.95.3 resides). So,
how do I resolve this such that it will use the
gcc2.95.3 include files & libraries ? Is it because I
don't put gcc2.95.3 under /usr/... ? 

---START---
:
:
In file included from
/usr/include/c++/3.2/backward/iostream.h:31,
                 from
../../incl/LEDA/std/iostream.h:8,
                 from ../../incl/LEDA/basic.h:58,
                 from
../../incl/LEDA/impl/gen_array.h:25,
                 from _array.c:28:
/usr/include/c++/3.2/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 ../../incl/LEDA/basic.h:98,
                 from
../../incl/LEDA/impl/gen_array.h:25,
                 from _array.c:28:
../../incl/LEDA/param_types.h:424: warning: friend
declaration `int
   compare(const T&, const T&)' declares a
non-template function
../../incl/LEDA/param_types.h:424: warning: (if this
is not what you intended,
   make sure the function template has already been
declared and add <> after
   the function name here) -Wno-non-template-friend
disables this warning
In file included from ../../incl/LEDA/basic.h:101,
                 from
../../incl/LEDA/impl/gen_array.h:25,
                 from _array.c:28:
../../incl/LEDA/iteration.h: In function `bool
LedaLoopSucc(const T&, void*&)':
../../incl/LEDA/iteration.h:84: parse error before `)'
token
../../incl/LEDA/iteration.h: In function `bool
LedaLoopPred(const T&, void*&)':
:
:
---END---

Thanks very much in advance.

Regards,
Hanna

--- LLeweLLyn Reese
<llewelly@lifesupport.shutdown.com> wrote:
> Hanna <hanna_kur@yahoo.com> writes:
> 
> > Hi,
> > 
> > I've been trying to install Leda 3.8 in with gcc
> 3.2
> > (on RedHat 8.0), but
> > everytime I tried to build the libraries, it
> always
> > give me this
> > warning & error :
[...]


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]