Glade code not working (5)

1 Name: #!/usr/bin/anonymous : 2006-08-31 16:12 ID:PZ0iEqyz

I'm trying to set up a simple GTK+ program using Glade and Dev C++, but the compiler (mingw) isn't liking these lines from support.h:

void glade_set_atk_action_description (AtkAction *action, const gchar *action_name, const gchar *description);

GdkPixbuf* create_pixbuf (const gchar *filename);

Anyone know why?

2 Name: dmpk2k!hinhT6kz2E : 2006-09-01 00:57 ID:Heaven

The lines in isolation aren't much help. What are the compiler errors?

3 Name: #!/usr/bin/anonymous : 2006-09-02 16:21 ID:eaEcm8Wv

syntax error before * token

4 Name: #!/usr/bin/anonymous : 2006-09-02 19:14 ID:Heaven

>>3
were there any errors before that?

5 Name: #!/usr/bin/anonymous : 2006-09-16 16:01 ID:R2MeZUxs

You forgot to include some file that including support.h requires. There's no way for a C compiler to tell some identifiers are supposed to be typedeffed in another part of the program, so what you get is a syntax error. I'd blame the lack of definition for either or both of AtkAction and GdkPixbuf; you likely need to include the proper ATK and GDK (or GTK) headers to get it to compile.

Or you could take a peep at the numerous Glade examples and their build systems and main programs. That'd help, I'd wager.

This thread has been closed. You cannot post in this thread any longer.