If you're compiling C code, then you are likely ok, because I believe GCC
uses Sun's libc.  In fact, I checked this assumption by compiling a hello
world app on isis.visi.com.  Here is what I got:

isis~: gcc hello.c
isis~: ldd a.out
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
isis~: uname -a
SunOS isis 5.6 Generic_105181-17 sun4u sparc SUNW,UltraSPARC-IIi-Engine
isis~: gcc --version
2.8.1

If you're compiling C++, you may not be okay.  In my experience, C++
compilers are incompatible in more ways than one.  Name mangling is one
thing they haven't agreed upon and this prevents compatible linking.

Mike

----- Original Message -----
From: "David Christian" <dchristian at users.sourceforge.net>
To: <tclug-list at mn-linux.org>
Sent: Sunday, June 24, 2001 11:39 AM
Subject: [TCLUG] Compilers? (Very slightly OT)


> This is more a GNU question than a linux question, but I figure this is
the right crowd to ask anyway :>
>
> I'm using GNU tools for porting a library to Solaris.  This means I'm
using gcc to compile the code.  The clients who will be using this library
are using the Solaris native compiler for their program which will be using
my library.  Do you guys know of any issues that arise when two object files
created by different compilers are linked?  Will the client's program and my
library play nice together?
>
> Thanks in advance,
> Dave
>
> P.S. just wanted to mention that if there is a meeting about netcat I'll
show up since I had barely even heard of it before this last discussion and
it sounds nifty. :>  So there's one vote.
>
> _______________________________________________
> tclug-list mailing list
> tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list