This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 970929 snapshot: a ghost in g++ !-)
- To: mlawson at drfmc dot ceng dot cea dot fr (Max Lawson)
- Subject: Re: 970929 snapshot: a ghost in g++ !-)
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 3 Oct 1997 08:04:18 -0700 (PDT)
- Cc: egcs at cygnus dot com
>
> Hi !
>
> There still is a problem between the order used
> to include the "string" and "stl"-files. In the
> following test-program, the apparition takes place
> in the <stdexcept> file.
>
> Enjoy, Max
>
> P.S. Thanx for the GREAT job
>
> >> cat z.cc
> #include <iostream.h>
> #ifdef __ghost
> #include <vector>
> #include <string>
> #else
> #include <string>
> #include <vector>
> #endif
>
> int main()
> {
> string s("a_string");
> vector<double> v(3,-1.0);
> cout << "a string: \"" << s << "\" followed by a vector element: "
> << v[0] << endl;
>
> return 1;
> }
>
> >> g++ -v -D__ghost -g z.cc
> Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.11/specs
It is fine on my linux/x86/libc 5.
H.J.