demuxlet icon indicating copy to clipboard operation
demuxlet copied to clipboard

'assert' was not declared in this scope

Open rlittman16 opened this issue 4 years ago • 4 comments

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!

rlittman16 avatar May 13 '20 23:05 rlittman16

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.

endeneon avatar May 18 '20 20:05 endeneon

same problem, ubuntu 18, gcc 7

arogozhnikov avatar Jun 11 '20 19:06 arogozhnikov

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

prashanthsama1 avatar Aug 10 '20 17:08 prashanthsama1

Try putting the following:

#include <cassert>

Into the files filter.h and hts_utils.h.

welchr avatar Aug 11 '20 20:08 welchr