Unix Programming - Can `ar' maintain those libraries compiled by gcc?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > Can `ar' maintain those libraries compiled by gcc?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Can `ar' maintain those libraries compiled by gcc?
Steven

2004-01-23, 5:12 pm

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?

Would anyone tell me the answer?
Thanks.

--
Steven Ding
Casper H.S. Dik

2004-01-23, 5:12 pm

Steven <dwj@asia.com> writes:
quote:

>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
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Casper H.S. Dik

2004-01-23, 5:12 pm

Steven <dwj@asia.com> writes:
quote:

>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
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Steven

2004-01-23, 5:12 pm

Casper H.S. Dik wrote:
quote:

> Steven <dwj@asia.com> writes:
>
>
>
>
> 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
Steven

2004-01-23, 5:12 pm

Casper H.S. Dik wrote:
quote:

> Steven <dwj@asia.com> writes:
>
>
>
>
> 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
Casper H.S. Dik

2004-01-23, 5:12 pm

Steven <dwj@asia.com> writes:
quote:

>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?




I think "ar" is fine.

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Casper H.S. Dik

2004-01-23, 5:12 pm

Steven <dwj@asia.com> writes:
quote:

>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?




I think "ar" is fine.

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com