> I use the minimal Makefile:
>
> CFLAGS=-O2 -g -I/usr/lib/glib/include/
> LDFLAGS=-L/usr/X11R6/lib -lX11 -lglib -lgdk -lgtk -lm
>
> and get an (apparently) working program but the warnings:
>
> ld: warning: libc.so.5, needed by /usr/lib/libc5-compat/libXi.so.6, may
> conflict with libc.so.6
> /
To compile and link the first example from the gtk Tutorial:
#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;
}
I use the minimal Make
2 matches
Mail list logo