groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] cvs sources fail to compile in cygwin...


From: Werner LEMBERG
Subject: Re: [Groff] cvs sources fail to compile in cygwin...
Date: Thu, 07 Mar 2002 09:02:24 +0100 (CET)

> To my surprise, this is the result with gcc 2.95.3 and cygwin 1.3.10:
>
> In file included from /usr/include/unistd.h:8,
>                   from maxfilename.cc:28:
> /home/alv/src/groff/src/include/getopt.h:95: redefinition of `struct 
> option'
> /home/alv/src/groff/src/include/groff-getopt.h:44: previous definition 
> here
> 
> Searching the net, the only previous references I found were that groff 
> 1.61 would compile out of the box.

Please tell me gcc's preprocessor symbol for CYGWIN (probably
__CYGWIN__ or something similar).  Currently, a proper configure test
is missing in groff to check whether groff-getopt.h has to be included
or not.  Instead, it tests the compiler's ID.

As a quick solution, comment out the

  #include <groff-getopt.h>

line in lib.h.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]