Re: C++ help needed for Tide
Hi,
> g++ -ggdb -O6 -DNDEBUG -I./protoobj -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -o obj-opt-x86_64/test_spectrum_preprocess.o -c
> src/test_spectrum_preprocess.cc
> In file included from src/test_spectrum_preprocess.cc:8:0:
> src/records.h: In destructor 'RecordWriter::~RecordWriter()':
> src/records.h:85:16: error: 'close' was not declared in this scope
> close(fd_);
> ^
> src/records.h: In destructor 'RecordReader::~RecordReader()':
> src/records.h:137:14: error: 'close' was not declared in this scope
> close(fd_);
> ^
>
> Any help would be welcome
Simply add at the top of "src/records.h":
#include <unistd.h>
You'll also have to add at the top of "src/search.cc" and "src/peptide_mods.cc":
#include <deque>
And finally at the top of "src/modifications.h":
#include <climits>
HTH,
Sébastien-
Reply to: