error compiling a gtk tarball (please)



Hi
after finished my work  developed with anjuta 0.9.1 on a suse 8.1
i have done a tarball distro (gz file).the file runs fine on the suse.
installing it on a redhat i receve a lot of error message ,for example:

main.c: In function `main:
main.c:127: parse error before `*'
main.c:144: `window1' undeclared (first use in this function)
main.c:144: (Each undeclared identifier is reported only once
main.c:144: for each function it appears in.)
main.c:150: `fixed1' undeclared (first use in this function)

here are some lines of the code whir line number...

int
main (int argc, char *argv[])
{
  
#ifdef ENABLE_NLS
  bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
  textdomain (PACKAGE);
#endif

  gtk_set_locale ();
  gtk_init (&argc, &argv);

  add_pixmap_directory (PACKAGE_DATA_DIR "/pixmaps");
  add_pixmap_directory (PACKAGE_SOURCE_DIR "/pixmaps");
  
  GtkWidget *window1;               /*line 127*/
  GtkWidget *fixed1;
  GtkWidget *label2;
  GtkWidget *label1;
  GtkWidget *label4;


this for every widget  ,i don't see any error !!!why this messages ???

please help 
thank you



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