![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
Compiling against GTK gives parse and syntax errors
I'm trying to learn GTK in C, so I wrote a very simple program, which follows:
#include <gtk/gtk.h>
int main (int argc, char *argv[])
{
GtkWidget *window;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(window);
gtk_main();
return 0;
}gcc -o program program.c `gtk-config --cflags --libs` Does anybody know what this means?
__________________
Remember: no matter what odds you're up against, or how many times you've tried already, it can't hurt to SPAWN MORE OVERLORDS. Last edited by dan@george; Feb 20th, 2005 at 11:25 PM. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
i would have a look on the gtk forums :/
|
|
|
|
|
|
#3 |
|
Newbie
|
Right, sorry to waste your time.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|