From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <81e45675c9da1737e61bfee2374ae450.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199801132125.WAA03288@stefan.sime.com> Date: Wed, 14 Jan 1998 00:59:58 +0100 (MET) From: Alessandro Mirone Subject: Re: relocation truncated 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 #include main() { complex 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 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 &)' /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