From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: girod@stybba.ntc.nokia.com (Marc Girod) Cc: oliva@dcc.unicamp.br, egcs@egcs.cygnus.com Subject: Re: virtual inheritance: optimization for empty objects Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: <199903141943.LAA05172@atrus.synopsys.com> References: <1yk8wjdhf7.fsf@sinkku.ntc.nokia.com> X-SW-Source: 1999-03n/msg00484.html Message-ID: <19990331234600.EF81bmZGoWWrjSrEjDAcT05i9eLStqkUrIqXmCkj1ek@z> > 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).