Linking with Gtk+ in VS 8 - pease help!



Hi,
I downloaded & installed winodws GTK+, GLADE and GL extension for GTK+
binaries from:
http://gladewin32.sourceforge.net/modules/news/
Do I understand correctly that .lib and .dll files can now be used on
win32 without library recompilation?

I included all the header file search paths, all the .lib file names
and the library search path into Project Settings. I also included the
DLL search path into the VS search paths (the GTK\2.0\bin directory).

During linking of an example program button.c, 40 errors of the
following form are generated:
button.obj : error LNK2019: unresolved external symbol _gtk_window_new
referenced in function _main
button.obj : error LNK2019: unresolved external symbol
_gtk_init_abi_check referenced in function _main

The linker does find a number of external symbols as follows:
Searching C:\Program Files\Common Files\GTK\2.0\lib\pangowin32-1.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\gdkglext-win32-1.0.lib:
     Found _gdk_gl_config_new_by_mode
       Referenced in button.obj
       Loaded gdkglext-win32-1.0.lib(libgdkglext-win32-1.0-0.dll)
     Found _gdk_gl_drawable_gl_end
       Referenced in button.obj

However, it fails to find some other symbols after searching the
following libraries:
Searching C:\Program Files\Common Files\GTK\2.0\lib\atk-1.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\cairo.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\gdk-win32-2.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\glade-2.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\glib-2.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\gtkglext-win32-1.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\pangowin32-1.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\gdkglext-win32-1.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\gmodule-2.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\charset.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\art_lgpl_2.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\bz2.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\gdk_pixbuf-2.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\iconv.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\pangocairo-1.0.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\png.lib:
   Searching C:\Program Files\Common Files\GTK\2.0\lib\pango-1.0.lib

How can I find out, in which libaries the undefined externals are
supposed to be? What can be the cause of such linking errors?
Please help! It will be really appreciated.



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