This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: help for a newbie C Programmer


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]