First, configure GTK + on dev C ++. There are many related articles on the Internet. Here is a brief description:
Glade/GTK + for Windows download development kit, which has been compiled and configured, can save a lot of trouble. Just download a gtk-dev-2.12.9-win32-2.exe. After the installation is complete, open Dev C ++, select Tools> compliers options, and check the compiler and linker command line options.
Add:-MMS-bitfields-ic:/GTK/include/gtk-2.0-ic:/GTK/lib/gtk-2.0/include-ic: /GTK/include/atk-1.0-ic:/GTK/include/Cairo-ic:/GTK/include/pango-1.0-ic:/GTK/include/glib-2.0-ic: /GTK/lib/glib-2.0/include-ic:/GTK/include/FreeType2-ic:/GTK/include/libpng12
Add-LC: In linker command line: /GTK/lib-lgtk-win32-2.0-lgdk-win32-2.0-latk-1.0-lgio-2.0-lgdk_pixbuf-2.0-lpangowin32-1.0-lgdi32-lpangocairo-1.0-lpango-1.0-lcairo-lgobject-2.0-lgmodule-2.0-lglib-2.0-lintl
In this way, GTK is configured ~~
Configure OpenGL as follows:
GTK + OpenGL supports the gtkglext library. You do not need to install gtk-dev-2.12.9-win32-2.exe because it has integrated gtkglext.
You only need to add:-lgtkglext-win32-1.0-lgdkglext-win32-1.0-lopengl32-lglu32-lglu32-lglu32 after linker command line
You can.