[Top][All Lists]

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

[Bug-dejagnu] Re: Compiling Using gcc 3.0

From: Rob Savoye
Subject: [Bug-dejagnu] Re: Compiling Using gcc 3.0
Date: Mon, 28 May 2001 07:43:18 -0600

On Sun, May 27, 2001 at 08:51:12PM -0700, Jeffrey Oldham wrote:
> To compile today's (27May) dejagnu using gcc 3.0 (as of 22May) on
> i686-pc-linux-gnu, I had to modify the source code ala the attached
> patch.  I have not yet confirmed the resulting code actually works
> correctly.
  It's close, but not quite. This compiles, it just doesn't execute
correctly! :-) For some reason, (I'm still coming up to speed on
libstdc++-v3) changing from an ostrstream to a ostringstream stops
outputting the test state completely.

  All this function does is let me do a:
        std::cout << testout(FAILED) << std::endl
  where FAILED is an index into an array, and testout() prints the
string with that entry. You can see if this works or not by trying
the unit.cc test case in testsuite/libdejagnu/.

> One additional change needs to be made to the appropriate file: I
> needed to use g++, not gcc, to determine the support for libstdc++ v.2
> xor 3.  The patch's `configure' chunk demonstrating the change should
> instead be placed in some appropriate place.

  I fixed this by adding a AC_LANG_CPLUSPLUS to the DJ_AC_STL defun.
This way it uses whatever you have set for CXX.

        - rob -

reply via email to

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