statgen / demuxlet

Genetic multiplexing of barcoded single cell RNA-seq
Apache License 2.0
116 stars 25 forks source link

'assert' was not declared in this scope #64

Open rlittman16 opened 4 years ago

rlittman16 commented 4 years ago

Hello,

I had an error installing demuxlet. During make, I get the following error:

hts_utils.cpp:274:13: error: 'assert' was not declared in this scope assert(stop); ^~ hts_utils.cpp:274:13: note: suggested alternative: 'sqrt' assert(stop); ^~ sqrt make[1]: [Makefile:367: hts_utils.o] Error 1 make[1]: Leaving directory '/u/project/xyang123/xyang123-NOBACKUP/rlittman/demuxlet/demuxlet' make: [Makefile:239: all] Error 2

Can this just be solved by adding #include into hts_utils.cpp?

Thanks!

endeneon commented 4 years ago

Yes, I have the same problem. I tried to add #include but to no avail (it will later cause conflict in filter.cpp). I am compiling on an RHEL7 with GCC 9.2.0.

arogozhnikov commented 4 years ago

same problem, ubuntu 18, gcc 7

prashanthsama1 commented 4 years ago

Did any of you find a solution for this. I am facing the same problem on my server. Thanks in advance..!!!

welchr commented 4 years ago

Try putting the following:

#include <cassert>

Into the files filter.h and hts_utils.h.