Closed torognes closed 2 years ago
I added the replacement function xgetline
to util.cc
, and it now compiles on Windows using the x86_64-w64-mingw32-g++ compiler. I'll test if it works well on Windows too.
Testing (on Travis) now fails with this message:
FAIL: issue 72 --- ascii character x00 is accepted if present at the end of the header
May need to adjust the function a little bit.
Rewritten using getc
instead of fgets
due to lack of support for NUL characters within the string.
Fixed in commit 89e06941383ec882362eb3d4ce8767b5b3f98caf.
Compiling currently fails on Windows using the x86_64-w64-mingw32-g++ compiler due to the
getline
function which is a POSIX standard and not available on Windows, only on on Unix-like systems.We previously used the
fgets
function but changed togetline
to allow unlimited FASTA line lengths. Thegetline
function can automatically allocate enough memory no matter the line length, butfgets
requires a fixed predetermined maximum line length.I am working on a replacement function.