Last active
August 29, 2015 13:57
-
-
Save vy-let/9405653 to your computer and use it in GitHub Desktop.
Install libdispatch for use on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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