DB3 problem

Brooks Davis brooks at one-eyed-alien.net
Mon Apr 7 15:14:19 PDT 2003


[This belonged on -questions if on any @freebsd.org list.]

On Mon, Apr 07, 2003 at 02:10:36PM +0200, Stephan Möck wrote:
> 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'
> 
> Does anybody no what's the problem is?

You have to link against the library by adding the -ldb3 option to the
commandline.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030407/6baa715e/attachment.bin


More information about the freebsd-current mailing list