This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: some trouble with using gcc on SunOS
- To: RAMBOZ H InfoEdpRsaVdf <Herve dot Ramboz at socgen dot com>
- Subject: Re: some trouble with using gcc on SunOS
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 23 Jun 2001 04:21:38 -0300
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>, HENRY B InfoEdpRsaVdf <Bernard dot Henry at socgen dot com>, Santacreu Hubert EXPSIA <Hubert dot Santacreu at socgen dot com>
- Organization: GCC Team, Red Hat
- References: <iss.183b.3b3345cc.f1b21.1@fedvdf.fr.socgen.com>
On Jun 22, 2001, RAMBOZ H InfoEdpRsaVdf <Herve.Ramboz@socgen.com> wrote:
> scedev:/export/home/herve/sources> gcc -ltngdt envoi_simple.c
The order of arguments matters when linking. This is not a GCC thing,
but a linker thing. When the linker processes libtngdt, it doesn't
know /var/tmp/ccUUQ9VP.o (the temporary object file created from
envoi_simple.c) is going to need TNGDT_Server_Connect from the
library, so it doesn't bring this symbol in. Then, when it gets to
the object file, it won't go back. Reorder the flags and it should
work.
--
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