This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Why I can't create a database using Berkeley DB
- From: Larry Hall <lh-no-personal-replies-please at cygwin dot com>
- To: Manuel Tejada <mantemu at yahoo dot com dot mx>, cygwin at cygwin dot com
- Date: Wed, 20 Jul 2005 22:41:40 -0400
- Subject: Re: Why I can't create a database using Berkeley DB
- References: <20050721022752.90634.qmail@web50404.mail.yahoo.com>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
At 10:27 PM 7/20/2005, you wrote:
>When I tried to compile prueba_berkeley.c I get the
>following:
>
>$ gcc -o prueba_berkeley prueba_berkeley.c
>/cygdrive/c/WINDOWS/TEMP/ccRirmsy.o:prueba_berkeley.c:(.text+0x45):
>undefined reference to `_db_create'
>/cygdrive/c/WINDOWS/TEMP/ccRirmsy.o:prueba_berkeley.c:(.text+0x59):
>undefined reference to `_db_strerror'
>collect2: ld returned 1 exit status
>
>
>As you see, it tells the db_create() anf db_strerror()
>are not defined. Somebody can tell me how to define
>them?
You forgot the library. Add '-ldb-4.3'. That should help.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/