Efficient program for calculating Extended Haplotype Homozygosity (EHH) and Integrated Haplotype Score (iHS)
GNU General Public License v3.0
41
stars
17
forks
source link
unrecognized command line option "-std=c++11" error when installing #30
Closed
pyramidsnail closed 8 years ago
Hi,
I kept receiving this error when running make:
Scanning dependencies of target hapbin [ 12%] Building CXX object CMakeFiles/hapbin.dir/ehhfinder.cpp.o cc1plus: error: unrecognized command line option "-std=c++11" make[2]: * [CMakeFiles/hapbin.dir/ehhfinder.cpp.o] Error 1 make[1]: * [CMakeFiles/hapbin.dir/all] Error 2 make: *\ [all] Error 2
my gcc version is 4.8.2, anyone knows where is the problem?
Bests, Lin
Manually set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER and it worked. :)