[ECOS] STLport with iostreams up and running

Øyvind Harboe oyvind.harboe@zylin.com
Fri Feb 27 14:05:00 GMT 2004


On Fri, 2004-02-27 at 09:56, Andrew Lunn wrote:
> > > > Exceptions work(they don't require STLport). I've even added support for multithreaded 
> > > > exceptions to eCos. Nobody has commented on the patch though.
> > > > 
> > > > http://gcc.gnu.org/ml/gcc-patches/2003-07/msg01657.html
> > > 
> > > Probably because that patch breaks the user namespace, 
> > 
> > I don't understand the statement above. 
> > 
> > Could my patch be fixed?
> 
> The problem is you have added a global symbol which userspace
> applications see and could accidently have the same name causing all
> sorts of chaos. Libraries should avoid global variables where ever
> possible. If you absolutely must have a global variable you need to
> prefix it with _. Symbols starting for _ are reserved for system use. 
> 
> A better solution would be to add getter and setter functions and use
> the gcc convention for naming these functions that live in libgcc.a or
> where ever they live.
> 
>       Andrew

The things you point out here, could be corrected.

But, is the approach sound?


Øyvind



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list