[This belonged on -questions if on any _at_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
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC