linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mohammed Khalid Ansari <khalid@ncst.ernet.in>
To: linux c programming mailing list <linux-c-programming@vger.kernel.org>
Subject: static or shared
Date: Tue, 7 Jan 2003 16:49:29 +0530 (IST)	[thread overview]
Message-ID: <Pine.LNX.4.33.0301071646230.5493-100000@soochak.ncst.ernet.in> (raw)


Hi,

If /usr/lib contains both static and shared libraries of the same name 
eg odbc, which library compiler is going to take if I do..

gcc file.c -lodbc

How do I explicitly I define which library to take during compilation.

-- 

**************************************************************************

Mohammed Khalid Ansari                    Tel (res) : 0091-022-3051360
Assistant Manager II                          (off) : 0091-022-2024641
National Centre for Software Technology   Fax       : 0091-022-2049573 
8th flr,Air India Build. Nariman Point,   E-Mail    : khalid@ncst.ernet.in 	
Mumbai 400021.

Homepage : http://soochak.ncst.ernet.in/~khalid			  	  

**************************************************************************


             reply	other threads:[~2003-01-07 11:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-07 11:19 Mohammed Khalid Ansari [this message]
2003-01-07 13:17 ` static or shared Jan-Benedict Glaw
2003-01-07 17:10 ` Glynn Clements
2003-01-07 23:43   ` strange segmentation fault in malloc() qhwang
2003-01-08  0:38     ` Glynn Clements
2003-01-08 13:40       ` QingHua Wang

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=Pine.LNX.4.33.0301071646230.5493-100000@soochak.ncst.ernet.in \
    --to=khalid@ncst.ernet.in \
    --cc=linux-c-programming@vger.kernel.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 NNTP newsgroup(s).