Vincent Boisard wrote: > Hi, > > I am currently compiling some applications for my opensolaris b95 server, > mostly GNU. > When both work, should I compile with Sun CC (Sun Studio 12) or with GCC > (bundled 3.4.3 I think) ? > > Will there be any problem if, for example, some app uses dynamic libraries > compiled with Sun CC and some with GCC (at the same time) ? > > Thanks for your help, > > Vincent > -- > This message posted from opensolaris.org > _______________________________________________ > tools-compilers mailing list > tools-compilers at opensolaris.org
Generally, either compiler should work. Sometime GNU software builds with gcc, and not Studio, because that particular package depends on a specific behavior, but otherwise pick the one you like. If we're talking about C code, you should be able to mix objects produced by either compiler. File a bug if you find otherwise --- our intent is that it should work. If we're talking about C++, then you have to pick one compiler and use it for everything. This is a "feature" of the C++ language --- there's no standard binary binary ABI, and the different compilers lay things out differently. - Ali
