[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C++ help needed for Tide



On 30/09/2015 19:28, Andreas Tille wrote:
Hi,

I have started packaging Tide (a tandard tool for ass-spectroscopy) at

    git://anonscm.debian.org/debian-med/tide.git

Unfortunately these days gcc is more picky about C++ syntax and I was
running into

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_);

Isn't this simply a missing

  #include <unistd.h>

? Or if the global close() is shadowed by a member function also called close, use ::close(fd_)?


Regards,
Roger


Reply to: