help compiling a wGlade program

I am trying to compile a program using dev-c++ on a Windows XP box.
The command line is:

        gcc.exe src/callbacks.o src/interface.o src/main.o src/support.o  -o "Project1.exe" -L"C:/Program 
Files/Dev-Cpp/lib" -mwindows -lz -lglib-2.0.dll -lgtk.dll -lgdk.dll 

and the errors are 

    src/interface.o(.text+0x60):interface.c: undefined reference to `g_type_check_instance_cast'
    src/interface.o(.text+0x8b):interface.c: undefined reference to `g_type_check_instance_cast'
    src/interface.o(.text+0xd1):interface.c: undefined reference to `g_type_check_instance_cast'
    src/interface.o(.text+0x108):interface.c: undefined reference to `g_type_check_instance_cast'
    src/interface.o(.text+0x159):interface.c: undefined reference to `g_type_check_instance_cast'
    src/interface.o(.text+0x191):interface.c: more undefined references to `g_type_check_instance_cast' follow

i noticed that this is defined in <gobject/gtype.h>
    #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), 

i am guessing that somefile that should be including <gobject/gtype.h> isn't, but when I add that file i get 
the error
    In file included from src/interface.c:14:
    C:/Program Files/Dev-Cpp/include/glib-2.0/gobject/gtype.h:20:2: #error "Only <glib-object.h> can be 
included directly."
and including <glib-object.h>   yields the same undefined references as above.

interface.c (which is built by wGlade) includes the following headers

    #ifdef HAVE_CONFIG_H
    #  include <config.h>

    #include <sys/types.h>
    #include <sys/stat.h>
    #include <unistd.h>
    #include <string.h>

    #include <gdk/gdkkeysyms.h>
    #include <gtk/gtk.h>

can anybody out there help me, please...

zvi sebrow verizon net

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