This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building dejagnu with latest GCC


    Please put this 

       using namespace std;

    just after the "#include <strstream>" line -- line 35.
    Let me know how it went.

It's not line 35, but I think I know what you meant.  I get less errors,
but still get:

make[2]: Entering directory `/g/gcc/dejagnu-1.4.1/testsuite/libdejagnu'
Makefile:203: .deps/unit.P: No such file or directory
c++ -DPACKAGE=\"dejagnu\" -DVERSION=\"1.4.1\"  -I. -I.      -I../.. -g -c unit.c
c
In file included from /usr/local/include/c++/3.2/backward/strstream:51,
                 from ../../dejagnu.h:70,
                 from unit.cc:4:
/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T
his 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. Examp
les include substituting the <X> header for the <X.h> header for C++ includes, o
r <sstream> instead of the deprecated header <strstream.h>. To disable this warn
ing use -Wno-deprecated.
unit.cc: In function `int main(int, char**)':
unit.cc:46: ISO C++ forbids assignment of arrays
/usr/local/include/c++/3.2/streambuf:416: `std::basic_streambuf<_CharT,
   _Traits>* std::basic_streambuf<_CharT, _Traits>::setbuf(_CharT*, long int)
   [with _CharT = char, _Traits = std::char_traits<char>]' is protected
unit.cc:53: within this context
unit.cc:64: ISO C++ forbids assignment of arrays
unit.cc:72: ISO C++ forbids assignment of arrays
unit.cc:75: ISO C++ forbids assignment of arrays
unit.cc:83: ISO C++ forbids assignment of arrays
unit.cc:86: ISO C++ forbids assignment of arrays
unit.cc:94: ISO C++ forbids assignment of arrays
unit.cc:97: ISO C++ forbids assignment of arrays


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