I have a copy of htlib (1.11) and demuxlet from gituhub in a directory.
I compiled/link htlib successfully.
When I run 'make' for demux, I got this error message. Need your help. Thank you
In file included from hts_utils.h:42,
from hts_utils.cpp:24:
hts_utils.cpp:53:23: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’}
53 | val = kh_value(fai->hash, iter);
| ^~
../htslib/htslib/khash.h:549:26: note: in definition of macro ‘kh_value’
549 | #define kh_value(h, x) ((h)->vals[x])
| ^
In file included from hts_utils.h:47,
from hts_utils.cpp:24:
../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’}
69 | struct faidx_t;
| ^~~
hts_utils.cpp:61:29: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’}
61 | int ret = bgzf_useek(fai->bgzf, val.offset + p_beg_i / val.line_blen * val.line_len + p_beg_i % val.line_blen, SEEK_SET);
| ^~
In file included from hts_utils.h:47,
from hts_utils.cpp:24:
../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’}
69 | struct faidx_t;
| ^~~
hts_utils.cpp:70:29: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’}
70 | while ( (c=bgzf_getc(fai->bgzf))>=0 && l < p_end_i - p_beg_i + 1)
| ^~
In file included from hts_utils.h:47,
from hts_utils.cpp:24:
../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’}
69 | struct faidx_t;
| ^~~
make[1]: *** [Makefile:507: hts_utils.o] Error 1
I have a copy of htlib (1.11) and demuxlet from gituhub in a directory. I compiled/link htlib successfully. When I run 'make' for demux, I got this error message. Need your help. Thank you
In file included from hts_utils.h:42, from hts_utils.cpp:24: hts_utils.cpp:53:23: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’} 53 | val = kh_value(fai->hash, iter); | ^~ ../htslib/htslib/khash.h:549:26: note: in definition of macro ‘kh_value’ 549 | #define kh_value(h, x) ((h)->vals[x]) | ^ In file included from hts_utils.h:47, from hts_utils.cpp:24: ../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’} 69 | struct faidx_t; | ^
~~ hts_utils.cpp:61:29: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’} 61 | int ret = bgzf_useek(fai->bgzf, val.offset + p_beg_i / val.line_blen * val.line_len + p_beg_i % val.line_blen, SEEK_SET); | ^~ In file included from hts_utils.h:47, from hts_utils.cpp:24: ../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’} 69 | struct faidx_t; | ^~~ hts_utils.cpp:70:29: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’} 70 | while ( (c=bgzf_getc(fai->bgzf))>=0 && l < p_end_i - p_beg_i + 1) | ^~ In file included from hts_utils.h:47, from hts_utils.cpp:24: ../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’} 69 | struct faidx_t; | ^~~ make[1]: *** [Makefile:507: hts_utils.o] Error 1