This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linking problems
- To: Eduardo José Hernández Cisneros <is100403 at mail dot udlap dot mx>
- Subject: Re: Linking problems
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 15 Mar 2001 00:57:23 -0300
- Cc: <gcc-help at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <001f01c0ac6a$3d910940$8c40948c@pue.udlap.mx>
On Mar 14, 2001, Eduardo José Hernández Cisneros <is100403@mail.udlap.mx> wrote:
> I have a static library developed with Sun´s Worshop compiler:
> /.../lib/abc.a
Is that in C++? Sun Workshop and g++ aren't binary compatible for
C++.
> -L /./lib \
> -L /./xyz//lib \
> -L /opt/GCC281/lib \
> -l myGNU\
> -l myGNUclass \
> -l stdc++ \
> -l iberty \
> -o client client.o
Always list object files before libraries they depend on, unless you
know exactly why you don't want to do it that way.
--
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