Re: DB3 problem

From: Dan Nelson <dnelson_at_allantgroup.com>
Date: Mon, 7 Apr 2003 17:14:01 -0500
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_at_allantgroup.com
Received on Mon Apr 07 2003 - 13:14:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC