public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: sujit kumar <kumar_sujit@yahoo.com>
To: Alexandre Oliva <aoliva@redhat.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: __pure_virtual undefined symbol : SOLVED
Date: Thu, 02 Aug 2001 00:43:00 -0000	[thread overview]
Message-ID: <20010802074204.60744.qmail@web10101.mail.yahoo.com> (raw)
In-Reply-To: <orwv4o2c0d.fsf@feijoada.lsd.ic.unicamp.br>

Hi Alexandre 

Thanks for the prompt reply. I had tried to see many
mailing lists and i could not find a satisfacory
solution.
The solution that U have suggested is not working as
well.
If I extract _pure.o from libgcc.a and link it along
with other object files , I am not getting these error
messages.
Why is that ? Can u throw some light on the mechanism
?

Thanks &
Regards
Sujit Kumar
 


--- Alexandre Oliva <aoliva@redhat.com> wrote:
> On Aug  1, 2001, sujit kumar <kumar_sujit@yahoo.com>
> wrote:
> 
> 
> > These are the flags for linking : 
> > ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2
> > /usr/lib/crt1.o /usr/lib/crti.o
> >
> /usr/lib/gcc-lib/i386-linux/egcs-2.91.66/crtbegin.o
> > -L/usr/lib/gcc-lib/i386-linux/egcs-2.91.66
> > -L/usr/i386-linux/lib -lstdc++ -lm -lgcc -lc -lgcc
> > /usr/lib/gcc-lib/i386-linux/egcs-2.91.66/crtend.o
> > /usr/lib/crtn.o -lglut -ffast-math -lMesaGL -lm
> > -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lX11 -lXext
> > -lXmu -lXi -lSM -lICE
> 
> This looks definitely wrong.  `-lstdc++ -lm -lgcc
> -lc -lgcc' should
> appear after all other libraries.  This explains why
> linking failed.
> The order of arguments to the linker is significant.
> 
> -- 
> Alexandre Oliva   Enjoy Guarana', see
> http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                 
> aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp       
> oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to
> mailing lists, not to me


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

  reply	other threads:[~2001-08-02  0:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-01  2:14 sujit kumar
2001-08-01  5:36 ` Alexandre Oliva
2001-08-02  0:43   ` sujit kumar [this message]
2001-08-02 10:59     ` aoliva
2001-08-17  4:52       ` sujit kumar
2001-08-01  2:15 sujit kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010802074204.60744.qmail@web10101.mail.yahoo.com \
    --to=kumar_sujit@yahoo.com \
    --cc=aoliva@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).