Use GTK (Windows) under MINGW

zhaozj2021-02-16  53

Use GTK (Windows) to download this, gtk-runtime-environment-2.2.4-3.exe in the environment variable, PASS / LIB

Go to MINGW website Next GTK's library http://henet.dl.sourceForge.Net/sourceForge/gtk-win/gtk-source-code-2.2.4-2.zip After decompression, you understand what do you do? Open MINGW, he has GTK template, then build a GTK project, new .C file If you don't write code COPY # include 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);} If you compile, you can't find GTK / gtk.h Go to add the path, otherwise the error will be endless, you look at the file of gtk.h. Open the engineering properties -> Compile -> Addition Include File

Change all the standard paths //, say so much, this sentence is useful. Or set up environment variables, this is not. If you have something wrong, look at the runtime library. Still there is REBOOT, still q ME 250290580, actually introduced with GTK in DEVCPP ://out.bitunion.org/viewthread.php?tid=48772&fpage=&highlight=&page=1 But many people think MingW is better than DEVCPP, I think so. Run GTK under Windows you will find that he is a bit slow. Think about how the GTK is running, Java is running when you do what you do. If you want to cool, you will write under xwindows.

转载请注明原文地址:https://www.9cbs.com/read-23088.html

New Post(0)