Re: gtk2 Segmentation faults
- From: Owen Taylor <otaylor redhat com>
- To: Ronald Bultje <rbultje ronald bitfreak net>
- Cc: Kristian Peters <kristian peters korseby net>, gtk-list gnome org
- Subject: Re: gtk2 Segmentation faults
- Date: Mon, 18 Mar 2002 08:34:52 -0500 (EST)
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]