Q: apps and libraries built with Forte AND gcc (mixed)

From: Ian Veach (imail@nevada.edu)
Date: Wed Jun 04 2003 - 20:45:22 EDT


I have a few newbie questions on compiling, and hope someone might shed
some light (on any or all) if you can:

a) Can I mix code [C or C++] and libraries compiled with different
        compilers (e.g. Forte cc and GCC)?
b) Can I mix 64 bit and 32 bit code and libraries?
c) Does anyone have evidence (performance, etc.) of why using cc (Forte
        5 or 6) to compile something would be better than gcc
d) Does anyone have good pointers to a document on these concepts and how
        they apply to Solaris? I haven't found much google.

Reasons: We're running Solaris 8 and planning on building Apache + PHP +
PHP support (jpeg, png, imap, ssl, zlib, mcrypt, mhash, etc...). We'd
prefer to use Forte for everything, but in the past we've had problems
with getting certain things to compile with it at all with it; In those
cases, we've given up and just compiled them with gcc. However, we're
concerned with mixing and matching libraries and code compiled with mixed
compilers [not the unresolved symbols compile-fail, but the non-evident
creeping problems that might happen with apps running in production].
We're also concerned with certain things that might only compile 32 bit
but call (or be called by) an external library.

Thanks for any light you can shed. Sorry this is more compiler theory
than Sun-specific, but I figure there might be different answers for
different native compilers.

Ian
goop@scs.unr.edu
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:32 EDT