Ensembl / WiggleTools

Basic operations on the space of numerical functions defined on the genome using lazy evaluators for flexibility and efficiency
Apache License 2.0
143 stars 25 forks source link

bufferedReader.c compilation error #59

Closed gevro closed 3 years ago

gevro commented 3 years ago

Error below. Looks like include of string.h is missing.

cc -g -Wall -O3 -std=gnu99 -I../../libBigWig -I../../htslib -D_PBGZF_USE -c bufferedReader.c -o bufferedReader.o
bufferedReader.c:188:9: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)'
      [-Werror,-Wimplicit-function-declaration]
        return strcmp(cl_A->chrom, cl_B->chrom);
               ^
bufferedReader.c:188:9: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
1 error generated.
make[1]: *** [bufferedReader.o] Error 1
make: *** [Wiggletools] Error 2
dzerbino commented 3 years ago

Hello @gevro ,

Evidently my compiler has been treating this as a warning all along, now fixed.

Cheers,

Daniel