Menu

How to intall and use GTK+ . . .

2002-11-24
2012-09-26
  • Nobody/Anonymous

    Sorry, it's probably a very lame question, but I can't seem to get this working. I can get them to show up in the projects, but any compile will fail with "undeclared funktion" and so on
    I'm on a Win2000 machine with Athlon XP 1800.
    Any help will be greatly appreciated
    Thanks

     
    • apj

      apj - 2002-11-24

      Have you linked the gtk library? Possibly you need to add:
      -lgtk-win32-2.0.lib
      to your linker command line
      Or maybe not it's something else...
      //Adam

       
    • Nobody/Anonymous

      No . . . do I have to ? I tried your solution but to no avail.
      Still the same errors

       
    • apj

      apj - 2002-11-24

      could you post some source code? It's a little difficult otherwise, there's lots of places that those sort's of errors could come from (I don't actually use GTK myself but I'll try and help if I can...)

      //Adam

       
    • Nobody/Anonymous

      Ok, here you go . . .I'm trying to compile this *very*
      basic example from the tutorial.

      #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;
      }

      The errors are as follows:

      28 D:\Programme\Dev-Cpp\Mein\Makefile.win
      [Build Error] [Warning] overriding commands for target `"GTK+'
      22 D:\Programme\Dev-Cpp\Mein\Makefile.win
      [Build Error] [Warning] ignoring old commands for target `"GTK+'
      make.exe D:\Programme\Dev-Cpp\Mein\make.exe
      Circular "GTK+ <- "GTK+ dependency dropped.

       
    • apj

      apj - 2002-11-25

      it's most likely that there is a space in your project's pathname (try absolutely no spaces in any filenames or paths)

      either that or... are you using the original gcc version 2.95 or have you upgraded to v3.2? v3.2 might have some issues with some packages...

      if that doesn't help, i'll have another look

      //Adam

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.