This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: lesstiff compilation pb


check if main.c includes getopt.h

If not then you need to add to it

#ifdef __CYGWIN__
#include <getopt.h>
#endif

suhaib


> -----Original Message-----
> From: Cedric Bompart [mailto:cedric.bompart@morse.com] 
> Sent: Thursday, June 07, 2001 1:29 PM
> To: 'cygwin-xfree@sourceware.cygnus.com'
> Subject: lesstiff compilation pb
> 
> 
> Hi,
> 
> I try to compile lesstiff 0.92.32 and I got this error during the
> compilation:
> 
> make[3]: Entering directory `/lesstif-0.92.32/clients/Motif-2.0/uil'
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../include 
> -I../../../include/Motif-1.2
> -I..
> /../../include/Motif-1.2                -I../../../lib/Mrm
> -I../../
> ../lib/Mrm              -I/usr/X11R6/include    -g -Wall -c main.c
> main.c: In function `main':
> main.c:82: warning: implicit declaration of function `getopt'
> main.c:91: `optarg' undeclared (first use in this function)
> main.c:91: (Each undeclared identifier is reported only once
> main.c:91: for each function it appears in.)
> main.c:127: `optind' undeclared (first use in this function)
> make[3]: *** [main.o] Error 1
> make[3]: Leaving directory `/lesstif-0.92.32/clients/Motif-2.0/uil'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/lesstif-0.92.32/clients/Motif-2.0'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/lesstif-0.92.32/clients'
> make: *** [all-recursive] Error 1
> 
> I compiled/installed the latest version of libtool (1.4), so 
> what should I
> do? and I got the latest version of cygwin and xfree...
> 
> Thx.
> Ced.
> 
> --
> Cedric Bompart, Internet Developer, Morse Hughes Rae
> tel: 01332 826110   mobile: 07931 536934   switchboard: 01332 826000
> email: c.bompart@hughesrae.co.uk
> 
> This email and any attachments are confidential and are 
> intended only for
> the addressee. If you are not the intended recipient of this 
> email and have
> received it in error, please notify the sender immediately by 
> reply email
> and then delete it from your system.
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]