Then i compile, there is no problem with the header, but i think the problem is come from linker to library.

The error message is like below:-
Settings/SKTan/workspace/test1/Debug/../src/test1.cpp:13: undefined reference to `gtk_widget_show'
:C:/Documents and Settings/SKTan/workspace/test1/Debug/../src/test1.cpp:15: undefined reference to `gtk_main'

I've only dabbled, but I compile my GTK+ applications in Windows the same way I do in Linux--by running gcc myself or from a typical POSIX install script (configure, make, make install). I do both of these using MinGW/MSYS.

i see, but using Msys is hard, you need to install every component to start. download dll and exe file from glade is another problem with me, i don't know where to put those file so that my compiler can find it.

Unfortunately, from what I've read, developing GTK+ in Windows is not as easy as other OS's. Be it MSYS, Cygwin, Visual Studio, Bloodshed Dev++, or Eclipse-- you need to know or figure out what all the dependencies are that you need, how you compiler/linker will find them and what linker flags it uses.

There are some GTK+ Development installers out there, however, I don't have any experience using them.

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum