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
142 stars 24 forks source link

The compiler raised syntax errors when compiling the "bigWiggleReader.c" source #90

Closed sklarame closed 10 months ago

sklarame commented 10 months ago

Thanks for developing this package! Recently I tried to install the package following the "Build from source" instruction in [README.md]. Things all went well until the compiler raised such syntax errors when I executed "make" command in the WiggleTools directory:

bigWiggleReader.c: In function ‘readBigWiggleRegion’: bigWiggleReader.c:55:12: error: expected ‘;’ before ‘if’ 55 | start = 1 | ^ | ; 56 | if (stop < 1) | ~~ bigWiggleReader.c:59:7: error: ‘iter’ undeclared (first use in this function) 59 | if (!iter) | ^~~~

After checking and completing missing semicolons ';' around such lines, and revising the line 59 as "if (iter==NULL)", the source was compiled, and the "make" process can be completed. The resulting binary did work so far. Hope this information might help. Best wishes!

dzerbino commented 10 months ago

Now fixed, thanks for reporting that issue!