This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking problems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]