| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Message-ID: | <37488152.96A1D854@golzari.nl> |
| Date: | Mon, 24 May 1999 00:29:38 +0200 |
| From: | Matthew Golzari <consultancy AT golzari DOT nl> |
| Reply-To: | consultancy AT golzari DOT nl |
| Organization: | Golzari IT-Consultancy |
| X-Mailer: | Mozilla 4.51 [en] (Win98; I) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | Undefined reference to 'gethostent' |
Dear reader,
During linking the next line:
$ gcc -o test test.o
I get the following error message:
test.o(.text+0x387):test.c: undefined reference to 'gethostent'
collect2: Id returned 1 exit status
Some of source-code:
#include <netdb.h>
.
int main(void)
.
struct hostent *host;
.
host = gethostent();
.
I've tried the following tricks:
extern struct hostent *gethostent(void);
and during linking the next option:
-L"all of the libraries !!!"
No result,
Is there anyone with any solution ?
Best regards,
M. Golzari
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |