Skip to content

Instantly share code, notes, and snippets.

@ozooxo
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozooxo/9927789 to your computer and use it in GitHub Desktop.
Save ozooxo/9927789 to your computer and use it in GitHub Desktop.
Install gnome glib (ubuntu 12.04)
sudo apt-get install libglib2.0-dev
sudo apt-get install libgtk2.0-dev #optional
cat >hello.c <<EOL
#include <glib.h>
int main () {
return 0;
}
EOL
gcc `pkg-config --cflags glib-2.0` hello.c `pkg-config --libs glib-2.0` -o hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment