linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Glynn Clements <glynn.clements@virgin.net>
To: wrazlov@gmx.net
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Building a program "static"
Date: Tue, 29 Oct 2002 10:06:45 +0000	[thread overview]
Message-ID: <15806.23989.856359.135348@cerise.nosuchdomain.co.uk> (raw)
In-Reply-To: <200210291000.17896.wrazlov@gmx.net>


Wrazlov wrote:

> I tried to build a program to be static, but it always says that some library 
> was not found, altough it works very well if it's built normal (shared):
> gcc -L/usr/qt-3.0.4/lib -lqt-mt -static program.static program.o
> ld says: "-lqt-mt not found"
> What's wrong with the linker-options?

If you use "-static", you must have static (".a") versions of every
library which the program uses. In the above case, it's complaining
that it couldn't find "libqt-mt.a".

Binary packages often don't include static libraries; in which case,
you will have to build a static version of the library from source.

-- 
Glynn Clements <glynn.clements@virgin.net>

      reply	other threads:[~2002-10-29 10:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29  9:00 Building a program "static" Wrazlov
2002-10-29 10:06 ` Glynn Clements [this message]

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=15806.23989.856359.135348@cerise.nosuchdomain.co.uk \
    --to=glynn.clements@virgin.net \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=wrazlov@gmx.net \
    /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 NNTP newsgroup(s).