[Howto] bash script for gcc command (with custom path to GTK+ header-files and libraries)

posted in: computer | 0
#!/bin/bash

gcc main.c -o main -I/usr/include/gtk-3.0/ \
                   -I/usr/include/glib-2.0/ \
                   -I/usr/lib/x86_64-linux-gnu/glib-2.0/include/ \
                   -I/usr/include/pango-1.0/ \
                   -I/usr/include/cairo/ \
                   -I/usr/include/gdk-pixbuf-2.0/ \
                   -I/usr/include/atk-1.0/ \
                   \
                   -L/usr/lib/x86_64-linux-gnu \
                   \
                   -lgtk-3 \
                   -lgobject-2.0