Re: Linking with Gtk+ in VS 8 - pease help!

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

 



First off you need to make sure your enviroments are setup correctly so
that they see the libs .. you can do this under options and in project
and c++ directories.. there is a lib section and a include section. you
will need to add the lib directories and sub directories and the include
directories and sub directories.. there is also a include in two of the
lib sub directories which is needed for specific os setup.

then you need to link agains the libs and make sure your code includes
gtk/gtk.h

there are two ways to link to the libs but im going to just show you one
since i dont feel like showing you how to setup your projects options

if you put this in your source code it will link against some libs that
are needed

#pragma comment(lib, "gtk-win32-2.0.lib") //gtk
#pragma comment(lib, "gdk-win32-2.0.lib") //gdk
#pragma comment(lib, "gdk_pixbuf-2.0.lib") //gdk-pixbuf
#pragma comment(lib, "pango-1.0.lib") //pango
#pragma comment(lib, "gobject-2.0.lib") //gobject
#pragma comment(lib, "gmodule-2.0.lib") //gmodule
#pragma comment(lib, "glib-2.0.lib") //glib
#pragma comment(lib, "gthread-2.0.lib") //gthread

this btw is only MS VS Specific and other compilers ignore it.

if the installer does the job right you should not have to do all that
since it should of put the directories in your systems global enviroment
LIB

but you would still have to tell the compiler to link against the libs
in one way or another

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux