This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: __pure_virtual undefined symbol : SOLVED
- To: sujit kumar <kumar_sujit at yahoo dot com>
- Subject: Re: __pure_virtual undefined symbol : SOLVED
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 01 Aug 2001 09:36:02 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010801091414.43516.qmail@web10101.mail.yahoo.com>
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