odelaneau / shapeit4

Segmented HAPlotype Estimation and Imputation Tool
MIT License
89 stars 17 forks source link

Error in compiling #30

Open SIJAE-WOO opened 3 years ago

SIJAE-WOO commented 3 years ago

Hi,

I'd like to user shapeit4, but I have problem with compiling.

The below is error message.

**g++ -std=c++11 -O3 -mavx2 -mfma -c src/objects/genotype/genotype_sweep.cpp -o obj/genotype_sweep.o -Isrc -I/home/users/sijaewoo/bin/htslib -I/usr/include In file included from src/utils/otools.h:64:0, from src/objects/genotype/genotype_header.h:25, from src/objects/genotype/genotype_sweep.cpp:22: src/utils/timer.h: In member function 'std::string timer::date()': src/utils/timer.h:59:12: error: 'put_time' is not a member of 'std' ss << std::put_time(std::localtime(&in_time_t), "%d/%m/%Y - %X"); ^ make: * [obj/genotype_sweep.o] Error 1

If you know how to solve it, please let me know.

Thnaks.

odelaneau commented 3 years ago

Hi,

The g++ compiler you used for compilation is too old. Compile SHAPEIT4 using g++ version >= 5 at the very least.

Best,