virtual inheritance: optimization for empty objects
Joe Buck
jbuck@Synopsys.COM
Wed Mar 31 23:46:00 GMT 1999
> sizeof> c++ -o foo -fnew-abi foo.C
> foo.C: In function `int main()':
> foo.C:36: `cout' undeclared in namespace `std'
> foo.C:46: `endl' undeclared in namespace `std'
>
> I used std::cout and std::endl. I works without -fnew-abi.
Does -fnew-abi turn on -fhonor-std? If it does, you might try
-fno-honor-std in addition to -fnew-abi.
(no-honor-std is the hack that ignores references to the std namespace,
so that standard C++ programs can work even though libstdc++ isn't
putting the streams in the std namespace).
More information about the Gcc
mailing list