-
Notifications
You must be signed in to change notification settings - Fork 13
FAQ
kartikayyer edited this page Jan 31, 2017
·
3 revisions
Q1. On OSX, the compiler complains about unknown option '-fopenmp'.
Ans. The C code is currently set up to compile with GCC as the compiler. Unfortunately, on OSX, Apple aliases the gcc
command to its Clang/LLVM compiler. In order to get GCC from Homebrew, use the command 'brew install gcc'. After that tab-complete gcc-
, i.e. type gcc-<Tab>
to get the version of GCC installed by Homebrew. Currently, it installs GCC 6. You can test this by typing gcc-6 -v
Open the Makefile
and change the line 'CC = gcc' to 'CC = gcc-6' or whatever version you have.