[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Right way to link in librpm...



On Mon, Jan 20, 2003 at 09:46:32AM -0500, James Olin Oden wrote:
> Hi All,
> 
> I have written some tiny code that uses librpm, but I had to add
> the following option when compiling:
> 
> 	-I/usr/include/rpm
> 
> The full command is:
> 
> 	gcc -I/usr/include/rpm -lrpm -lrpmio -lrpmdb -lpopt cmprpm.c -o cmprpM
> 
> Is this normal, or am I doing something wrong?

"Normal" in the sense that -I/usr/include/rpm is intended.

Libraries should be
	-lrpm -lrpmdb -lrpmio -lpopt ...
and with rpm-4.2, nothing more than
	-lrpm
is needed.

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []