Re: gtk2 Segmentation faults



Ronald Bultje <rbultje ronald bitfreak net> writes:

> On Sun, 2002-03-17 at 23:00, Kristian Peters wrote:
> >  int main( int   argc,
> >            char *argv[] )
> >  {
> >      printf("1\n");
> >      GtkWidget *window;
> >      printf("2\n");
> > [...]
> > 
> > reveals:
> 
> I wonder why this actually compiled, you're using a declaration of a
> variable after a function call, which is not allowed in C...

It is a long-standing GCC extension and now part of the C99 standard.

                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]