This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


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

Re: CYGWIN 1.3.1 compile error


On Sun, May 06, 2001 at 02:33:33PM +0200, Holger Vogt wrote:
>I have downloaded the recent snapshot. Compilation stopped with an error
>and the following message:
>
>gcc -c  -I. -I. -I/cygdrive/g/insight+dejagnu-20010503/tcl/generic
>-I/cygdrive/g
>/insight+dejagnu-20010503/tk/generic
>-I/cygdrive/g/insight+dejagnu-20010503/tk/x
>lib -DEXP_VERSION=\"5.26\" -DSCRIPTDIR=\"/usr/local/share\"
>-DEXECSCRIPTDIR=\"/u
>sr/local/lib\" -DTCL_DEBUGGER -g -O2  -DCYGWIN_ALTTCL
>-DDFLT_STTY="\"sane\""  exp_command.c
>In file included from /usr/include/w32api/windef.h:145,
>                 from /usr/include/w32api/windows.h:98,
>                 from exp_command.c:626:
>/usr/include/w32api/winnt.h:48: parse error before `CCHAR'
>/usr/include/w32api/winnt.h:48: warning: data definition has no type or
>storage
>class
>/usr/include/w32api/winnt.h:68: parse error before `*'
>/usr/include/w32api/winnt.h:68: warning: data definition has no type or
>storage
>class
>...
>...
>many more error messages
>
>I use the recent gcc:
>$ gcc -v
>Reading specs from /bin/../lib/gcc-lib/i686-pc-cygwin/2.95.3-4/specs
>gcc version 2.95.3-4 (cygwin special)
>$ uname -a
>CYGWIN_98-4.10 A7W7R0 1.3.1(0.38/3/2) 2001-04-24 20:01 i586 unknown
>
>
>Adding a line #undef VOID   to exp_command.c removed the error.
>
>$ diff exp_command.c exp_command.c.bak
>626d625
>< #undef VOID
>
>This also happened with the July 2000 Insight sources, so it may be a
>compatibility problem with the new CYGWIN.

Nope.  I'm the cygwin maintainer.  I created the gdb distribution
and the gcc distribution.  Guess what I use to create gdb?

I assume that you are using older insight/gdb sources.  You might
want to search the mailing list archives for the last 427 times this
has come up.  The short answer is upgrade your sources, or if this
is impossible for some inexplicable reason, configure using:

CC='gcc -mwin32' configure

cgf


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