I'm trying to get openmp to run in my program on Mavericks, however when I try to compile using the flag
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gcc myProgram.cpp -fopenmp -o myProgram
gcc command in the latest Xcode suite is no longer the GCC frontend to LLVM (based on the very old GCC 4.2.1) but rather a symlink to
clang. Clang does not (yet) support OpenMP. You have to install separately another version of GCC, e.g. by following this tutorial or by using any of the available software package management systems like MacPorts and Homebrew.