delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/03/18:11:56

From: fdiez AT tekniker DOT es (=?us-ascii?Q?Francisco_Javier_Diez?=)
Subject: undefined errno in libftp
3 Mar 1998 18:11:56 -0800 :
Message-ID: <01BD46B3.E0C159A0.fdiez.cygnus.gnu-win32@tekniker.es>
Reply-To: "fdiez AT tekniker DOT es" <fdiez AT tekniker DOT es>
Mime-Version: 1.0
To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

Hello,

I am trying to build the Library for ftpd clients (libftp) from Oleg Orel 
in Windows NT ( SP3 ). I built it in Solaris with no problem but when I 
build it in windows NT I get the next error;

FtpLibrary.h:105: field `__errno' declared as a function

There is a struct;

typedef struct/* All structure initialize from edited struct FtpInit */
{
....

int errno;        /* Last error code */  ( FtpLibrary.h:105)

....
}

If I add the next code to the FtpLibrary.h

#ifndef __CYGWIN32__
extern int errno;
#else
#include <errno.h>
#endif

I can build the library, but when I try to build a program I get the next 
message:

FtpLogin.c:70: undefined reference to `errno'

Does anybody know what it happens ?

Thanks in advance


------------------------------------------------------------------------  
-----
 Francisco Javier Diez
 Fundacion TEKNIKER
 Avda. Otaola, 20 Apartado 44
 20600 Eibar, Gipuzkoa Spain
 Tel   : 34 43 206744
 Fax   : 34 43 202757
 mailto: fdiez AT tekniker DOT es
 WWW   : www.tekniker.es
------------------------------------------------------------------------  
------



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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