[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems compiling ta_string on CYGWIN
Hi,
There seems to be a problem with g++ 3.2 and ta_string.cc. I fixed the
following failure by changing
int new_state = s.rdstate();
to
ios::iostate new_state = s.rdstate();
on line 1089. Don't know if this is the right way to do it, though.
Here is the make output:
g++ -fno-implicit-templates -fno-exceptions -fno-rtti -o ta_string.o
-I/usr/include/g++-3 -I./src_include -I./src_include/ta_string
-I/usr/local/pdp++/include/CYGWIN -I/usr/local/include
-I/usr/local/interviews/include -O -Wall
-Winline -DHAVE_POSIX_SIGNALS=1 -DRETSIGTYPE=void -DCYGWIN -DLINUX
-D__i386__ -DWIN32 -DNO_PTHREAD -c /usr/local/pdp++/src/ta_string/ta_string.cc
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from src_include/ta_string/ta_string.h:78,
from /usr/local/pdp++/src/ta_string/ta_string.cc:59:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please
consider using one of the 32 headers found in section 17.4.1.2 of the C++
standard. Examples include substituting the <X> header for the <X.h> header
for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
/usr/local/pdp++/src/ta_string/ta_string.cc: In function `std::istream&
operator>>(std::istream&, taString&)':
/usr/local/pdp++/src/ta_string/ta_string.cc:1089: invalid conversion from `int'
to `std::_Ios_Iostate'
/usr/local/pdp++/src/ta_string/ta_string.cc:1089: initializing argument 1 of
`void std::basic_ios<_CharT, _Traits>::clear(std::_Ios_Iostate) [with
_CharT
= char, _Traits = std::char_traits<char>]'
make[2]: *** [ta_string.o] Error 1
make[2]: Leaving directory `/usr/local/pdp++/src/ta_string/CYGWIN'
make[1]: *** [optLib_impl] Error 2
make[1]: Leaving directory `/usr/local/pdp++/src/ta_string/CYGWIN'
make: *** [optLib] Error 2
Thanks,
Tom