can't compile wget and lapack++

Corinna Vinschen vinschen@cygnus.com
Fri Jun 30 15:04:00 GMT 2000


Jonas Jensen wrote:
> 
> > >Wget has a linkage problem : ftp.o (..........) undefined reference to
> > >'h_errno'
> > These would be porting problems.  You should look at the code for these
> > two packages and see where the problem is.  In addition, I know wget has
> > been ported before.
> 
> I managed to compile wget by passing 0, rather than h_errno. This makes it say
> "unknown error" rather than "cannot resolve host" when it can't connect. I'm sure
> there is a better way to do it, but....this one's very easy :-)

Uhmm, wouldn't it be better just to add

	#include <netdb.h>

which is the file which defines h_errno just like in other
OSes. It's not really a porting problem but the too relaxed
handling of external `int' type variables by some programmers.

The same problem is often found with `errno'.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list