help for a newbie C Programmer
Norman Vine
nhv@cape.com
Wed Aug 13 18:48:00 GMT 2003
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/
More information about the Cygwin
mailing list