CXX src/compactor-baseoutputwriter.o
In file included from ../src/dnsmessage.hpp:22:0,
from ../src/baseoutputwriter.hpp:20,
from ../src/baseoutputwriter.cpp:15:
../src/capturedns.hpp: In member function ‘virtual CaptureDNS* CaptureDNS::clone() const’:
../src/capturedns.hpp:914:36: error: invalid new-expression of abstract class type ‘CaptureDNS’
return new CaptureDNS(*this);
^
../src/capturedns.hpp:74:7: note: because the following virtual functions are pure within ‘CaptureDNS’:
class CaptureDNS : public Tins::PDU
^~~~~~~~~~
In file included from /usr/local/include/tins/dns.h:39:0,
from /usr/local/include/tins/tins.h:33,
from ../src/ipaddress.hpp:22,
from ../src/configuration.hpp:21,
from ../src/baseoutputwriter.cpp:13:
/usr/local/include/tins/pdu.h:516:18: note: virtual void Tins::PDU::write_serialization(uint8_t*, uint32_t)
virtual void write_serialization(uint8_t* buffer, uint32_t total_sz) = 0;
^~~~~~~~~~~~~~~~~~~
In file included from ../src/baseoutputwriter.hpp:20:0,
from ../src/baseoutputwriter.cpp:15:
../src/dnsmessage.hpp: At global scope:
../src/dnsmessage.hpp:174:16: error: cannot declare field ‘DNSMessage::dns’ to be of abstract type ‘CaptureDNS’
CaptureDNS dns;
^~~
make: *** [Makefile:1361: src/compactor-baseoutputwriter.o] Error 1