Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: torstenk@ifi.uio.no (Torsten Robert Kirschner)
Subject: Re: How to link a library file
Date: 1996/05/29	[thread overview]
Message-ID: <4oi7d8$rle@glitnir.ifi.uio.no> (raw)
In-Reply-To: 4ofqqd$alm@alpha.comsource.net


>>>>> "DP" == David Phan <dphan@alpha.comsource.net> writes:
In article <4ofqqd$alm@alpha.comsource.net> dphan@alpha.comsource.net (David Phan) writes:
DP> I tried to link the library file /usr/local/sql/lib/libsql.a to a
DP> C program myprog.c with the following command and got error messages:
DP> cc /usr/local/sql/lib/libsql.a myprog.c

I'd suggest:

	cc -L/usr/local/sql/lib -lsql myprog.c

In general, a look at cc's man page might be a good idea. Also, if you
need header files, you might  have to add a -I/usr/local/sql/include.

	c u
		T.
--
Torsten Robert Kirschner                            torstenk@ifi.uio.no
torki@mpipf-muenchen.mpg.de  http://www.ifi.uio.no/~torstenk/index.html




  reply	other threads:[~1996-05-29  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-28  4:00 How to link a library file David Phan
1996-05-29  4:00 ` Torsten Robert Kirschner [this message]
1996-06-04  4:00   ` Simon Wright
1996-05-29  4:00 ` Torsten Robert Kirschner
1996-06-03  4:00 ` Jonathan ben-Avraham (Tivoli)
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox