Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Alessandro Mirone <alex@greco2.polytechnique.fr>
Subject: Re: relocation truncated
Date: Wed, 14 Jan 1998 00:59:58 +0100 (MET)	[thread overview]
Message-ID: <81e45675c9da1737e61bfee2374ae450.axp-list@archive.invalid> (raw)
In-Reply-To: <34BB6C88.D4451E1E@cogency.co.uk>

On Tue, 13 Jan 1998, David Alan Gilbert wrote:

> Alessandro Mirone wrote:
> > 
> >  and finally I  downloaded the port of libg++
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Hmm? EGCS comes with libstdc++ - why would you want libg++?

Ok, I apologize: there are some points that I misunderstood.

I was compiling with the  -fguiding-decls directive:
that makes problems.

If you compile a program like 

#include<complex.h>
#include<iostream.h>
main()
{
  complex<double> i=-1.0;
  cout << exp(i)<< endl;
} 
with
 egcc prova.cc  -fguiding-decls  -lstdc++

I get 

prova.cc(.text+0x48): undefined reference to `exp(complex<double> const &)'

That`s the source of my misunderstanding, I tought that function 
of libg++ are  missing, but they are not

Why did I use -fguidung-decls?
I used -fguiding-decl when  trying to port my programs from gnu c++ to 
egcs c++ because egcs complains about  a certain use of template,
that on the other hand  gcc allows without problems 
(maybe a non  ANSI/ISO feature??)

(I do not understand to much about it ):

 warning: friend declaration `class ostream & operator <<(class ostream 
&, const class uMatrix<Type> &)'
/home/alex/include/uMatrix.h:315: warning:   will not be treated as a 
template instantiation
/home/alex/include/uMatrix.h:315: warning:   unless you compile with 
-fguiding-decls
/home/alex/include/uMatrix.h:315: warning:   or add <> after the function 
name         

Conclusion:

If egcs is  the best compiler
I am the worst programmer in the world

I could I fix the problem to fit  egcs?
adding <> would be sufficient?

Thank you
bye
         Alessandro

> 
> Dave
> 
> 
> -- 
> ----------------------------------------------------------------------
> - Dr. David Alan Gilbert - WARNING! This is a beta release .signature-
> - Work:    dg @ cogency.co.uk        -    0161-428-9444              -
> - Home:    gro.gilbert @ treblig.org -                               -
> ----------------------------------------------------------------------
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

  parent reply	other threads:[~1998-01-13 23:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <34BB6C88.D4451E1E@cogency.co.uk>
1998-01-13 13:59 ` relocation truncated Mika Kortelainen
1998-01-13 23:59 ` Alessandro Mirone [this message]
1998-01-13 13:30 David Alan Gilbert
     [not found] <Pine.LNX.3.95.980112064626.329A-100000@tomtom.asi-fwb.com>
1998-01-12 13:47 ` Alessandro Mirone
1998-01-12 14:24 ` Alessandro Mirone
     [not found] <Pine.SOL.3.91.980111181435.12736A-100000@greco2>
1998-01-12 12:48 ` Tom Browder
  -- strict thread matches above, loose matches on Subject: below --
1998-01-11 20:05 N8YDAWG
1998-01-11 17:19 Alessandro Mirone
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox