Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 20th, 2005, 10:39 PM   #1
dan@george
Newbie
 
Join Date: Jun 2004
Location: Middletown, CT
Posts: 3
Rep Power: 0 dan@george is on a distinguished road
Send a message via AIM to dan@george
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;
}
Kid stuff, right? So I think the problem is in my GTK libraries themselves. You see, when I compile this program using
gcc -o program program.c `gtk-config --cflags --libs`
I get lots and lots of output, mostly complaints about syntax and parse errors in the GTK header files. I'm assuming the good folks who wrote it are more careful than that, so I don't know what to think.

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.
dan@george is offline   Reply With Quote
Old Feb 21st, 2005, 2:38 AM   #2
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
i would have a look on the gtk forums :/
Berto is offline   Reply With Quote
Old Feb 21st, 2005, 7:42 AM   #3
dan@george
Newbie
 
Join Date: Jun 2004
Location: Middletown, CT
Posts: 3
Rep Power: 0 dan@george is on a distinguished road
Send a message via AIM to dan@george
Right, sorry to waste your time.
dan@george is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC