delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | "Jeff Lu" <jklcom AT mindspring DOT com> |
To: | <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Question |
Date: | Mon, 23 Oct 2000 18:15:08 -0400 |
Message-ID: | <NDBBIHPECLIGKCCLMACAEEHHCHAA.jklcom@mindspring.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
Importance: | Normal |
------=_NextPart_000_000D_01C03D1D.2D202080 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I've downloaded and installed cygwin & gdbm-1.8.0. When tried to compile programs that uses dbm functions such as: gcc -o /home/jeff/getzip.cgi getzip.c utils.c -lndbm I got /usr/bin/ld: cannot find -lndbm gcc -o /home/jeff/getzip.cgi getzip.c utils.c -lgdbm I got errors on dbm_open, dbm_fetch etc as undefined reference Please see attached error file. This is weird. Some dbm calls got renamed to "_imp__dbm_open" during compile. Thanks -Jeff ------=_NextPart_000_000D_01C03D1D.2D202080 Content-Type: application/octet-stream; name="error" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="error" utils.c:7: warning: initialization makes integer from pointer without a = cast=0A= utils.c: In function `BannerAds':=0A= utils.c:2513: warning: function returns address of local variable=0A= utils.c:2518: warning: function returns address of local variable=0A= utils.c: In function `restaurantAds':=0A= utils.c:2580: warning: function returns address of local variable=0A= utils.c:2585: warning: function returns address of local variable=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x45e5):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x4645):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x4662):utils.c: undefined = reference to `_imp__dbm_firstkey'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x46a2):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x4745):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x49a9):utils.c: undefined = reference to `_imp__dbm_nextkey'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x49d1):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6a8f):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6b53):utils.c: undefined = reference to `_imp__dbm_firstkey'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6bad):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6bf9):utils.c: undefined = reference to `_imp__dbm_nextkey'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6c21):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6c6b):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6d5e):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6de7):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6ee1):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6f58):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x6f8f):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x7983):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x7ba8):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x7bc5):utils.c: undefined = reference to `_imp__dbm_firstkey'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x7c09):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x7d50):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x7e7f):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x7ee0):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x8324):utils.c: undefined = reference to `_imp__dbm_nextkey'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x8350):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x8e3e):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x8ef3):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x8f3e):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9453):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x94ae):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x95f6):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x96cf):utils.c: undefined = reference to `_imp__dbm_store'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x96e1):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9ad2):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9b44):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9b8a):utils.c: undefined = reference to `_imp__dbm_store'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9bbd):utils.c: undefined = reference to `_imp__dbm_store'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9bcf):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9c0e):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9c5e):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0x9c9d):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0xb6bb):utils.c: undefined = reference to `_imp__dbm_open'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0xb71d):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0xb73a):utils.c: undefined = reference to `_imp__dbm_firstkey'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0xb77a):utils.c: undefined = reference to `_imp__dbm_fetch'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0xb7ed):utils.c: undefined = reference to `_imp__dbm_close'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0xb9f5):utils.c: undefined = reference to `_imp__dbm_nextkey'=0A= /cygdrive/c/WINDOWS/TEMP/ccPLnwxd.o(.text+0xba1d):utils.c: undefined = reference to `_imp__dbm_close'=0A= collect2: ld returned 1 exit status=0A= make: *** [getdata] Error 1=0A= ------=_NextPart_000_000D_01C03D1D.2D202080 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------=_NextPart_000_000D_01C03D1D.2D202080--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |