delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/20/22:42:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050720223733.057034b8@pop.prospeed.net>
Date: Wed, 20 Jul 2005 22:41:40 -0400
To: Manuel Tejada <mantemu AT yahoo DOT com DOT mx>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Why I can't create a database using Berkeley DB
In-Reply-To: <20050721022752.90634.qmail@web50404.mail.yahoo.com>
References: <20050721022752 DOT 90634 DOT qmail AT web50404 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019