fatal error when compiling graphchi-cpp on Mac
qqsunkist opened this issue · 1 comments
after successfully getting clang@mp compiled on Mac (10.9.4), I got stuck when compiling graphchi-cpp, the errors are indicated as following
example_apps/connectedcomponents:47:18 fatal error: 'cmath' file not found.
I checked 'Makefile' in the folder of graphichi-cpp', the compiler was set to 'clang2', which is openmp enabled clang (C) compiler, but the version is 3.5. Actually, I want to set the corresponding compiler to clang2++ (C++ compiler) instead, but when I checked clang@mp installation directory, no clang++ compiler was generated, suspecting the version of llvm with openmp enabled is too low. How can I solve this issue?
Sorry for missing this issue.
I suggest installing GCC instead of clang. Here are good instructions:
https://wiki.helsinki.fi/display/HUGG/Installing+the+GNU+compilers+on+Mac+OS+X#InstallingtheGNUcompilersonMacOSX-InstructionsforMacOS10.10(Yosemite)withXcode6