Menu

gtk_init_abi_check error when compiling

2002-09-17
2012-09-26
  • Ray Gurganus

    Ray Gurganus - 2002-09-17

    I'm using Dev-C++ 4 with DevEx 011 (downloaded just yesterday), and when compiling I'm getting an error "undefined reference to 'gtk_init_abi_check' ".  I have included gtk/gtk.h, it has included gtk/gtkmain.h, and it defines this function in question.  I know that gtk.h is found, as I tried renaming it to gtkxxx.h, and got an error saying it wasn't found.  Suggestions?

    #include <windows.h>
    #include <stdlib.h>
    #include <gtk/gtk.h>
    #include <glib.h>

    int main(int argc, char *argv[])
    {
      gtk_init (&argc, &argv);  /* ERROR HERE*/
       return 0;
    }

     
    • Nobody/Anonymous

      I got this to compile using dev-v4950. w/o DevEx011.
      Created GTK project, cut-n-paste your code (not headers: Headers here are from the default GTK project).

      #include <stdlib.h>
      #include <gtk/gtk.h>
      #include <windows.h>

      int main(int argc, char *argv[])
      {
      gtk_init (&argc, &argv); /* ERROR HERE*/
      return 0;
      }

      Larry

       
    • Nobody/Anonymous

      When the project is created the following can be found in the project options:

      1.
      Compiler=  -I"<INCLUDE>\gtk-2.0" -I"<INCLUDE>\gtkdeps-2.0" -I"<LIB>\gtk-2.0\include" -I"<INCLUDE>\atk-1.0" -I"<INCLUDE>\pango-1.0" -I"<INCLUDE>\glib-2.0" -I"<LIB>\glib-2.0" -I"<LIB>\glib-2.0\include" -fnative-struct

      And -

      2.
      Linker=    -lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32 -luuid -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -liconv -lintl -mno-cygwin -fnative-struct

      Larry

       
    • Nobody/Anonymous

      I have these Dev items for GTK:

      Downloaded:
      gtk-dev-2.0.3.DevPak    16-Jul-2002 05:41   485k 
      gtk-runtime.exe         16-Jul-2002 05:45   3.5M 
      imagelib-1.DevPak       18-May-2002 01:56   298k 

         HERE:  http://www.bloodshed.net/dev/packages/bin/

        Larry

       

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.