Skip to content

Instantly share code, notes, and snippets.

@vy-let
Last active August 29, 2015 13:57
Show Gist options
  • Save vy-let/9405653 to your computer and use it in GitHub Desktop.
Save vy-let/9405653 to your computer and use it in GitHub Desktop.
Install libdispatch for use on Linux
# In my experience on Debian and a couple of Ubuntu systems,
# this one-liner gets libdispatch code ready-to-compile and use.
sudo aptitude install clang libblocksruntime-dev libkqueue-dev libpthread-workqueue0 libpthread-workqueue-dev libdispatch0 libdispatch-dev
# Compile with clang.
# (Prefer gcc? It's okay, you can use clang. I won't tell on you.)
clang foo.c -o foo -fblocks -lBlocksRuntime -ldispatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment