Date: Mon, 7 Apr 2003 15:14:15 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: =?iso-8859-1?Q?Stephan_M=F6ck?= <s.moeck@gmx.de> Cc: freebsd-current@freebsd.org Subject: Re: DB3 problem Message-ID: <20030407151415.A25581@Odin.AC.HMC.Edu> In-Reply-To: <AHEFKCLHAGCACGDEMFLPAELFCBAA.s.moeck@gmx.de>; from s.moeck@gmx.de on Mon, Apr 07, 2003 at 02:10:36PM %2B0200 References: <AHEFKCLHAGCACGDEMFLPAELFCBAA.s.moeck@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--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/--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030407151415.A25581>