delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/13/13:51:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <nhv AT cape DOT com>
From: "Norman Vine" <nhv AT cape DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: help for a newbie C Programmer
Date: Wed, 13 Aug 2003 13:55:59 -0400
Message-ID: <EKEJIKAILPONGGENMBGAGEPHEFAA.nhv@cape.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <029701c361c2$c53e9af0$6401a8c0@jag750>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Virus-Scanned: Cape.Com VirusScan, no known virus found

Jag writes:
> 
> I tried that, but I am still getting the following error.
> 
> $ gcc -shared -o
> libbridge.dll -Wl,--out-implib=libbridge.dll.a -Wl,--export-al
> l-symbols -Wl,--enable-auto-import -Wl,--whole-archive bridge.o nwutil.o
> jagsoc
> ket.o     -Wl,--no-whole-archive
> Creating library file: libbridge.dll.a
> nwutil.o(.text+0x57):nwutil.c: undefined reference to `_h_nerr'
> nwutil.o(.text+0x63):nwutil.c: undefined reference to `_h_errlist'
> collect2: ld returned 1 exit status
> 
> Any idea what package is h_nerr and h_errlist are defined in?

This might help
#include <errno.h>

but....AFAICT you would be better advised to look into
the source to determine whwere these are being used
and rewriting the code to call strerror() instead

HTH

Norman




--
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