970929 snapshot: a ghost in g++ !-)
H.J. Lu
hjl@lucon.org
Fri Oct 3 08:04:00 GMT 1997
>
> 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.
More information about the Gcc
mailing list