From owner-freebsd-current@FreeBSD.ORG Mon Apr 7 15:14:03 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 A52FF37B401 for ; Mon, 7 Apr 2003 15:14:03 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9818643F3F for ; Mon, 7 Apr 2003 15:14:02 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h37ME1gp054092; Mon, 7 Apr 2003 17:14:01 -0500 (CDT) (envelope-from dan) Date: Mon, 7 Apr 2003 17:14:01 -0500 From: Dan Nelson To: Stephan =?utf-8?B?TcO2Y2s=?= Message-ID: <20030407221401.GC2729@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i 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:03 -0000 In the last episode (Apr 07), Stephan M?ck said: > I have just installed DB3 and I want to compile an example programm from the > examples_c directory. The compilation stops with errors. > > gcc -o dbtest ex_access.c > > /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' Add -L/usr/local/lib -ldb3 to your link line. -- Dan Nelson dnelson@allantgroup.com