fastp
fastp copied to clipboard
Compile error is src/read.cpp
On CentOS 7 I had to add:
#include <string.h>
to src/read.cpp to get it to compile. Here is what I got before adding that line:
g++ -c src/read.cpp -o obj/read.o -std=c++11 -pthread -g -O3 -I./inc
src/read.cpp: In member function ‘void Read::appendToString(std::string*)’:
src/read.cpp:125:52: error: ‘memcpy’ was not declared in this scope
memcpy(str + total, mName->data(), mName->length());
^
src/read.cpp: In member function ‘void Read::appendToStringWithTag(std::string*, std::string)’:
src/read.cpp:151:52: error: ‘memcpy’ was not declared in this scope
memcpy(str + total, mName->data(), mName->length());
^
make: *** [Makefile:32: obj/read.o] Error 1
@svenmh which version of g++ u r using?
$ gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@svenmh i think we have fix the issue on the latest branch could u try again?
yes, it compiles now. Thank you.