DaehwanKimLab / hisat2

Graph-based alignment (Hierarchical Graph FM index)
GNU General Public License v3.0
464 stars 112 forks source link

compiling issue for HISAT-3N #361

Closed wbvguo closed 2 years ago

wbvguo commented 2 years ago

Hi HISAT developer,

I followed the instruction on official website for installing HISAT-3N. But encounter the following issue when compiling (with gcc/10.2.0):

> utility_3n_table.h: In member function 'void ChromosomeFilePositions::sort()':
> utility_3n_table.h:323:14: error: 'sort' is not a member of 'std'
>   323 |         std::sort(pos.begin(), pos.end());
>       |              ^~~~
> make: *** [hisat-3n-table] Error 1

Stackoverflow suggests a solution

#include <algorithm>

May I ask if you can check/fix or provide some guidance to fix this compilation issue?

Thanks!

imzhangyun commented 2 years ago

Hello @wbvguo,

Sorry about the problem. I just add "#include " in utility_3n_table.h. Could you pull and compile it again?

Thank you, Leo

wbvguo commented 2 years ago

Thanks, Leo. the problem is resolved now.