Hi,
Based on some Internet material I succeeded to compile using GTK 3:
hello.c
#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;
}
I tried:
gcc -o hello hello.c `pkg-config --libs --cflags gtk+-3.0`
clang -o hello2 hello.c `pkg-config --libs --cflags gtk+-3.0`
Both compiles worked.
But following the link, I got hundreds of warnings and a few errors:
https://stackoverflow.com/questions/5921460/how-to-setup-gtk-to-develop-with-codeblocks-on-ubuntu-linux
What can I do?