From owner-freebsd-current@FreeBSD.ORG Mon Apr 7 15:14:19 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2824937B408 for ; Mon, 7 Apr 2003 15:14:19 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 359B743FBD for ; Mon, 7 Apr 2003 15:14:18 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.8/8.12.3) with ESMTP id h37MEFLA027151; Mon, 7 Apr 2003 15:14:16 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.8/8.12.3/Submit) id h37MEFTs027148; Mon, 7 Apr 2003 15:14:15 -0700 Date: Mon, 7 Apr 2003 15:14:15 -0700 From: Brooks Davis To: =?iso-8859-1?Q?Stephan_M=F6ck?= Message-ID: <20030407151415.A25581@Odin.AC.HMC.Edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from s.moeck@gmx.de on Mon, Apr 07, 2003 at 02:10:36PM +0200 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: freebsd-current@freebsd.org Subject: Re: DB3 problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2003 22:14:19 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [This belonged on -questions if on any @freebsd.org list.] On Mon, Apr 07, 2003 at 02:10:36PM +0200, Stephan M=F6ck wrote: > I have just installed DB3 and I want to compile an example programm from = the > examples_c directory. The compilation stops with errors. >=20 > gcc -o dbtest ex_access.c >=20 > /var/tmp//ccdld6iZ.o: In function `ex_access': > /var/tmp//ccdld6iZ.o(.text+0x5b): undefined reference to `db_create' > /var/tmp//ccdld6iZ.o(.text+0x72): undefined reference to `db_strerror' > /var/tmp//ccdld6iZ.o(.text+0x444): undefined reference to `db_strerror' >=20 > Does anybody no what's the problem is? You have to link against the library by adding the -ldb3 option to the commandline. -- Brooks --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+kfg2XY6L6fI4GtQRAtxNAJ461Ntbft26PLI7K1iI4dCcgdN6vQCeJ2Bw bnOdbMCrAJOaDjkdJU/cy9Y= =Ym6S -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--