Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2003 17:14:01 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Stephan =?utf-8?B?TcO2Y2s=?= <s.moeck@gmx.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: DB3 problem
Message-ID:  <20030407221401.GC2729@dan.emsphone.com>
In-Reply-To: <AHEFKCLHAGCACGDEMFLPAELFCBAA.s.moeck@gmx.de>
References:  <AHEFKCLHAGCACGDEMFLPAELFCBAA.s.moeck@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030407221401.GC2729>