www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/02/05:11:14

Date: Mon, 2 Mar 1998 12:11:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: ckchan <ckchan4 AT pc DOT jaring DOT my>
cc: djgpp AT delorie DOT com
Subject: Re: header files ? revisited
In-Reply-To: <34F99012.D7B929B7@pc.jaring.my>
Message-ID: <Pine.SUN.3.91.980302120710.16206A-100000@is>
MIME-Version: 1.0

On Sun, 1 Mar 1998, ckchan wrote:

> What i mean here is say i need netdb.h in certain program, that header file
> can't be found in djgpp's include folder. But it is available in linux's
> usr/include folder. What can i do to port the header file to djgpp ??

Your *real* problem is not the missing header.  The functions that this 
header declares are missing from the DJGPP library.  Copying a header 
won't help, because the linker won't find these functions which the code 
you are trying to compile needs.

You need to find a library which implements the netdb functionality, and 
which will compile and work in a DJGPP program.  When you find such a 
library, it will most probably come with the netdb.h header.

Sorry, I don't know where (or indeed if) such a library is available.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019