Re: Can `ar' maintain those libraries compiled by gcc?

From: Steven (dwj_at_asia.com)
Date: 01/06/04


Date: Tue, 06 Jan 2004 22:13:33 +0800

Casper H.S. *** wrote:

> Steven <dwj@asia.com> writes:
>
>
>>I'm porting some software in C and C++ form cc in SunOS to gcc series
>>compilers. The former libraries are maintained by ar. I wonder if there
>>are some utilities like ar to maintain libraries compiled by gcc, or ar
>>is enough to maintain the libraries created by gcc?
>
>
> On Solaris "ar" is not capable of doing "C++" archive libraries;
> except when you stay away from templates, I think.
>
> Solaris "ar" is certainly capable of maintaining archives for gcc.
>
> Casper
However, if I want to create a C++ library archieve which is compiled
with g++, what should I use on SunOS? Or where can I find the documents
on this?

Thanks.

--
Steven Ding