Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: From: "Norman Vine" To: Subject: RE: help for a newbie C Programmer Date: Wed, 13 Aug 2003 13:55:59 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 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/