public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Bo Do" <bodo@flygp.se>
To: <gcc-help@gcc.gnu.org>
Subject: Re: How handle static libraries?
Date: Wed, 19 Nov 2003 08:22:00 -0000	[thread overview]
Message-ID: <009701c3ae77$60f1b3a0$2bfb0ec2@flygp.se> (raw)
In-Reply-To: <363801FFD7B74240A329CEC3F7FE4CC40D3409@ntxboimbx07.micron.com>

Thank you Lyle for clearing things up. =)
I'll take a look at .la stuff.

Thanks everyone for pointing me in the right direction.
/Bo

----- Original Message ----- 
From: <lrtaylor@micron.com>
To: <bodo@flygp.se>; <gcc-help@gcc.gnu.org>
Sent: Tuesday, November 18, 2003 7:20 PM
Subject: RE: How handle static libraries?


Bo,

Basically, the common way to do it is the way you're doing it.  If C
uses A and you use C, you link to both C and A (in that order).
Something you might look at, however, is .la files (usually created by
libtool, I believe).  These are information files that the
compiler/linker can use to know how to use a given library.  It may also
be able to tell the compiler what libraries your library depends on so
that it can link them in automatically.  Now, I'm not very familiar with
these files and how they work, but it might be something you would want
to look into.  You may find your answer there.

Good luck,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Bo Do


My question in this post is actually: What is the common way to
handle/create
static libraries which uses other libraries?

Thanks for reading this post. Don't know if it makes sense! =)
/Bo
 

  reply	other threads:[~2003-11-19  8:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-18 18:20 lrtaylor
2003-11-19  8:22 ` Bo Do [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-17  9:09 Bo Do
2003-11-17 23:18 ` Erik Christiansen
2003-11-18  8:17   ` Bo Do

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='009701c3ae77$60f1b3a0$2bfb0ec2@flygp.se' \
    --to=bodo@flygp.se \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).