Re: gtk2 Segmentation faults



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...

Ronald

-- 
-   .-.
-   /V\    | Ronald Bultje <rbultje ronald bitfreak net>
-  // \\   | Running: Linux 2.4.18-XFS and OpenBSD 3.0
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^




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