Hello everybody.
My name is moisés and my problem is the next.
I am programing with GTK 2.12 and vs.net 2003, but now I need use the solarsocket library but I was unable to compile any example con vs.net and in the forum of solarsocket I do not have an answer, but at the homepage of solarsockets said that his library is compatible with C:: B and mingw 3.4.x,
So I am using C:: B v1.0rc2 because with this compiler I can compiler examples of solarSockets, and now I am trying to compile a example of GTK, and use this page to configure C::B
http://shankao.mitreum.net/index.php?section=blog&page=viewpost&id=4I set GTK_HOME=C:\GTK in "Settings > Compiler > Custom Variables"
I add all directories of GTK in Settings > Compiler > Directories > Compiler
$(GTK_HOME)\include
$(GTK_HOME)\include\gtk-2.0
$(GTK_HOME)\include\glib-2.0
$(GTK_HOME)\include\pango-1.0
$(GTK_HOME)\include\atk-1.0
$(GTK_HOME)\include\gtkglext-1.0
$(GTK_HOME)\lib\gtk-2.0\include
$(GTK_HOME)\lib\glib-2.0\include
$(GTK_HOME)\lib\gtkglext-1.0\include
$(GTK_HOME)\include\libglade-2.0
$(GTK_HOME)\include\libxml2
$(GTK_HOME)\include\freetype2
$(GTK_HOME)\include\sigc -2.0
$(GTK_HOME)\lib\sigc -2.0\include
$(GTK_HOME)\include\cairo
$(GTK_HOME)\lib\gtkmm-2.4\include
$(GTK_HOME)\include\gtk-2.0\gdk
etc..
I add directorie of librarie “$(GTK_HOME)\lib“ in Settings > Compiler > Directories > Linker
and set -mms-bitfields in Project > Build options > Compiler > Other options
But when I compile the next simple example of gtk
#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;
}
C::B get me the next error:
ld.exe cannot find –lglib
I try to find some answers in the forum but did not find anything about this error
can someone help me?