Subject: Re: Proper way to do C++ development under -current
To: Urban Boquist <firstname.lastname@example.org>
From: Rick Byers <RickB@BigScaryChildren.net>
Date: 10/31/2000 08:58:43
On Tue, 31 Oct 2000, Urban Boquist wrote:
> Rick> What is the proper way to do real C++ development in NetBSD?
> On i386 I use pkgsrc/lang/gcc (2.95.2) together with the flag
> -fsjlj-exceptions and it has been working relatively well. At least
> _much_ better than the stock NetBSD gcc which I agree is almost
> unusable when it comes to C++...
Excellent, that -fsjlj-exceptions flag did the trick. It doesn't appear
to be documented in the man pages or info file. The only documentation I
found was in the gcc source which says using the "setjump/longjump"
approach is the default (obviously not the case). Just out of curiosity,
does anyone know why this flag is necessary on NetBSD/i386?
Maybe it should be made the default mode for our gcc pacakge (atleast on
i386 anyway)? It would probably save a lot of frustration. I spent a
while looking through the gcc docs looking for any code generation flags
related to exceptions, but didn't find anything. At the least, we should
make some reference to it being required.
Thank you very much! Finally I can get back to coding.
University of Waterloo, Computer Science