Errors when building setup.exe

Thomas Chadwick j_tetazoo@hotmail.com
Wed Nov 20 11:26:00 GMT 2002


I downloaded the source for the Cygwin setup program (via setup), ran 
configure, and then make.  All went smoothly until this:


Making all in libgetopt++
make[2]: Entering directory `/usr/src/setup-0/libgetopt++'
source='src/GetOption.cc' object='src/GetOption.lo' libtool=yes \
depfile='src/.deps/GetOption.Plo' tmpdepfile='src/.deps/GetOption.TPlo' \
depmode=gcc3 /bin/bash ./cfgaux/depcomp \
/bin/bash ./libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./include 
-I./include    -g -O2 -c -o src/GetOption.lo `test -f 'src/GetOption.cc' || 
echo './'`src/GetOption.cc
mkdir src/.libs
g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -g -O2 -c 
src/GetOption.cc -MT src/GetOption.lo -MD -MP -MF src/.deps/GetOption.TPlo  
-DPIC -o src/.libs/GetOption.o
In file included from include/getopt++/GetOption.h:19,
                 from src/GetOption.cc:19:
include/getopt++/OptionSet.h:31: `ostream' was not declared in this scope
include/getopt++/OptionSet.h:31: parse error before `)' token
In file included from src/GetOption.cc:20:
include/getopt++/Option.h:33: ISO C++ forbids declaration of `string' with 
no
   type
include/getopt++/Option.h:33: `string' declared as a `virtual' field
include/getopt++/Option.h:33: parse error before `const'
include/getopt++/Option.h:35: ISO C++ forbids declaration of `string' with 
no
   type
include/getopt++/Option.h:35: `string' declared as a `virtual' field
include/getopt++/Option.h:35: declaration of `int Option::string'
include/getopt++/Option.h:33: conflicts with previous declaration `int
   Option::string'
include/getopt++/Option.h:35: parse error before `const'
include/getopt++/Option.h:35: duplicate member `Option::string'
make[2]: *** [src/GetOption.lo] Error 1
make[2]: Leaving directory `/usr/src/setup-0/libgetopt++'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/setup-0'
make: *** [all] Error 2


Shouldn't this package build cleanly "out of the box"?  Am I missing 
something?


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list