Re: Shared Libraries?
Carl Shimer (shimer@tartan.com)
Sun, 6 Aug 1995 12:30:37 -0400 (EDT)
>
> I had problems compiling groff with the 2.7.0 gcc compiler. g++ didn't like
> references to variables declared like:
>
> for (int i = 0; ...) {
> ....
> }
>
> i = ... /* Error here */
>
> Since I don't have my draft C++ standard handy, I can't say if groff or g++
> is at fault.
>
this is a feature, not a bug :)
use the switch -fno-for-scope to allow the above code to compile.
see http://www.cygnus.com/~mrs/wp-draft/stmt.html#stmt.for for more info.
-Carl