Hi all,

I am a newbie trying to use berkeleyDB api.

I've installed it on my system using commands--

..dist/configure

make

make install

when I compile a C file using gcc command it gives me following errors------


[root@localhost filter]# gcc ex1.c
/tmp/ccw50a0S.o: In function `main':
ex1.c.text+0x2f): undefined reference to `db_create'
ex1.c.text+0x43): undefined reference to `db_strerror'
ex1.c.text+0x102): undefined reference to `db_strerror'
collect2: ld returned 1 exit status

Here is my Berkeley Dir file listings:

include
db_cxx.h db.h

lib
libdb-4.7.a libdb-4.7.a libdb-4.7.so libdb-4.so libdb.a libdb.so

There is no problem with the program. The problem is with linking. Please help me.