On 19 Nov 2015, at 10:49, Ivo Palli <[email protected]> wrote:
> In file included from bam_cat.c:44:
> ../htslib/htslib/cram.h:391: error: expected declaration specifiers or
> ‘...’ before ‘va_list’
> make: *** [bam_cat.o] Error 1
>
> This can be solved by putting
>
> #include <stdarg.h>
>
> in htslib/htslib/cram.h
Indeed it can, and there's a couple of other system includes and some extern
"C" needed in htslib/cram.h too.
> I'm runing RHEL 5.10 with gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
On OS X 10.9 and on Ubuntu 12.04 (GCC 4.6.3, eglibc 2.15), va_list gets
declared as a byproduct of including <stdio.h>. So it's slightly surprising
that that doesn't happen for you with your tools too, but we'll fix it
nonetheless.
Thanks,
John
--
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
------------------------------------------------------------------------------
_______________________________________________
Samtools-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/samtools-help