rabbitmq-cpp-tutorials icon indicating copy to clipboard operation
rabbitmq-cpp-tutorials copied to clipboard

error while executing make command

Open resmytomy opened this issue 4 years ago • 0 comments

I was following the steps in readme. But i encountered below error when executing make command. Please help me to fix the issue .

Scanning dependencies of target amqp-cpp [ 2%] Building CXX object 3rdparty/AMQP-CPP-2.1.4/CMakeFiles/amqp-cpp.dir/src/array.cpp.o In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:59:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:20:34: error: ‘function’ in namespace ‘std’ does not name a template type using SuccessCallback = std::function<void()>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:21:34: error: ‘function’ in namespace ‘std’ does not name a template type using ErrorCallback = std::function<void(const char message)>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:22:34: error: ‘function’ in namespace ‘std’ does not name a template type using FinalizeCallback = std::function<void()>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:23:34: error: ‘function’ in namespace ‘std’ does not name a template type using EmptyCallback = std::function<void()>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:24:34: error: ‘function’ in namespace ‘std’ does not name a template type using MessageCallback = std::function<void(const Message &message, uint64_t deliveryTag, bool redelivered)>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:25:34: error: ‘function’ in namespace ‘std’ does not name a template type using QueueCallback = std::function<void(const std::string &name, uint32_t messagecount, uint32_t consumercount)>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:26:34: error: ‘function’ in namespace ‘std’ does not name a template type using DeleteCallback = std::function<void(uint32_t deletedmessages)>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:27:34: error: ‘function’ in namespace ‘std’ does not name a template type using SizeCallback = std::function<void(uint32_t messagecount)>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:28:34: error: ‘function’ in namespace ‘std’ does not name a template type using ConsumeCallback = std::function<void(const std::string &consumer)>; ^~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/callbacks.h:29:34: error: ‘function’ in namespace ‘std’ does not name a template type using CancelCallback = std::function<void(const std::string &consumer)>; ^~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:60:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:29:5: error: ‘FinalizeCallback’ does not name a type FinalizeCallback _finalizeCallback; ^~~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:36:5: error: ‘SuccessCallback’ does not name a type SuccessCallback _successCallback; ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:42:5: error: ‘ErrorCallback’ does not name a type ErrorCallback _errorCallback; ^~~~~~~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:60:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:195:31: error: ‘SuccessCallback’ does not name a type Deferred &onSuccess(const SuccessCallback &callback) ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:214:29: error: ‘ErrorCallback’ does not name a type Deferred &onError(const ErrorCallback &callback) ^~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:241:32: error: ‘FinalizeCallback’ does not name a type Deferred &onFinalize(const FinalizeCallback &callback) ^~~~~~~~~~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:60:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h: In member function ‘virtual const std::shared_ptrAMQP::Deferred& AMQP::Deferred::reportSuccess() const’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:73:13: error: ‘_successCallback’ was not declared in this scope if (_successCallback) _successCallback(); ^~~~~~~~~~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:60:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h: In member function ‘const std::shared_ptrAMQP::Deferred& AMQP::Deferred::reportError(const char)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:125:13: error: ‘_errorCallback’ was not declared in this scope if (_errorCallback) _errorCallback(error); ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h: In destructor ‘virtual AMQP::Deferred::~Deferred()’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:173:13: error: ‘_finalizeCallback’ was not declared in this scope if (_finalizeCallback) _finalizeCallback(); ^~~~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h: In member function ‘AMQP::Deferred& AMQP::Deferred::onSuccess(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:198:9: error: ‘_successCallback’ was not declared in this scope _successCallback = callback; ^~~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:198:9: note: suggested alternative: ‘callback’ _successCallback = callback; ^~~~~~~~~~~~~~~~ callback /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h: In member function ‘AMQP::Deferred& AMQP::Deferred::onError(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:217:9: error: ‘_errorCallback’ was not declared in this scope _errorCallback = callback; ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:217:9: note: suggested alternative: ‘callback’ _errorCallback = callback; ^~~~~~~~~~~~~~ callback /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:220:56: error: expression cannot be used as a function if (_failed) callback("Frame could not be sent"); ^ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h: In member function ‘AMQP::Deferred& AMQP::Deferred::onFinalize(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferred.h:244:9: error: ‘_finalizeCallback’ was not declared in this scope _finalizeCallback = callback; ^~~~~~~~~~~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:61:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h: At global scope: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:30:5: error: ‘ConsumeCallback’ does not name a type ConsumeCallback _consumeCallback; ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:36:5: error: ‘MessageCallback’ does not name a type; did you mean ‘MessageImpl’? MessageCallback _messageCallback; ^~~~~~~~~~~~~~~ MessageImpl /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:73:39: error: ‘ConsumeCallback’ does not name a type; did you mean ‘ConsumedMessage’? DeferredConsumer &onSuccess(const ConsumeCallback &callback) ^~~~~~~~~~~~~~~ ConsumedMessage /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:86:39: error: ‘SuccessCallback’ does not name a type DeferredConsumer &onSuccess(const SuccessCallback &callback) ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:86:23: error: ‘AMQP::DeferredConsumer& AMQP::DeferredConsumer::onSuccess(const int&)’ cannot be overloaded DeferredConsumer &onSuccess(const SuccessCallback &callback) ^~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:73:23: error: with ‘AMQP::DeferredConsumer& AMQP::DeferredConsumer::onSuccess(const int&)’ DeferredConsumer &onSuccess(const ConsumeCallback &callback) ^~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:100:40: error: ‘MessageCallback’ does not name a type; did you mean ‘MessageImpl’? DeferredConsumer &onReceived(const MessageCallback &callback) ^~~~~~~~~~~~~~~ MessageImpl /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:114:39: error: ‘MessageCallback’ does not name a type; did you mean ‘MessageImpl’? DeferredConsumer &onMessage(const MessageCallback &callback) ^~~~~~~~~~~~~~~ MessageImpl /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h: In member function ‘AMQP::DeferredConsumer& AMQP::DeferredConsumer::onSuccess(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:76:9: error: ‘_consumeCallback’ was not declared in this scope _consumeCallback = callback; ^~~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:76:9: note: suggested alternative: ‘callback’ _consumeCallback = callback; ^~~~~~~~~~~~~~~~ callback /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h: In member function ‘AMQP::DeferredConsumer& AMQP::DeferredConsumer::onReceived(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:103:9: error: ‘_messageCallback’ was not declared in this scope _messageCallback = callback; ^~~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h: In member function ‘AMQP::DeferredConsumer& AMQP::DeferredConsumer::onMessage(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredconsumer.h:117:9: error: ‘_messageCallback’ was not declared in this scope _messageCallback = callback; ^~~~~~~~~~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:62:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h: At global scope: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:24:5: error: ‘QueueCallback’ does not name a type QueueCallback _queueCallback; ^~~~~~~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:62:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:74:36: error: ‘QueueCallback’ does not name a type DeferredQueue &onSuccess(const QueueCallback &callback) ^~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:87:36: error: ‘SuccessCallback’ does not name a type DeferredQueue &onSuccess(const SuccessCallback &callback) ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:87:20: error: ‘AMQP::DeferredQueue& AMQP::DeferredQueue::onSuccess(const int&)’ cannot be overloaded DeferredQueue &onSuccess(const SuccessCallback &callback) ^~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:74:20: error: with ‘AMQP::DeferredQueue& AMQP::DeferredQueue::onSuccess(const int&)’ DeferredQueue &onSuccess(const QueueCallback &callback) ^~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h: In member function ‘virtual const std::shared_ptrAMQP::Deferred& AMQP::DeferredQueue::reportSuccess(const string&, uint32_t, uint32_t) const’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:36:14: error: ‘_queueCallback’ was not declared in this scope if (!_queueCallback) return Deferred::reportSuccess(); ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:39:9: error: ‘_queueCallback’ was not declared in this scope _queueCallback(name, messagecount, consumercount); ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h: In member function ‘AMQP::DeferredQueue& AMQP::DeferredQueue::onSuccess(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:77:9: error: ‘_queueCallback’ was not declared in this scope _queueCallback = callback; ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredqueue.h:77:9: note: suggested alternative: ‘callback’ _queueCallback = callback; ^~~~~~~~~~~~~~ callback In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:63:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h: At global scope: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h:25:5: error: ‘DeleteCallback’ does not name a type DeleteCallback _deleteCallback; ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h:74:37: error: ‘DeleteCallback’ does not name a type DeferredDelete &onSuccess(const DeleteCallback &callback) ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h:87:37: error: ‘SuccessCallback’ does not name a type DeferredDelete &onSuccess(const SuccessCallback &callback) ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h:87:21: error: ‘AMQP::DeferredDelete& AMQP::DeferredDelete::onSuccess(const int&)’ cannot be overloaded DeferredDelete &onSuccess(const SuccessCallback &callback) ^~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h:74:21: error: with ‘AMQP::DeferredDelete& AMQP::DeferredDelete::onSuccess(const int&)’ DeferredDelete &onSuccess(const DeleteCallback &callback) ^~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h: In member function ‘virtual const std::shared_ptrAMQP::Deferred& AMQP::DeferredDelete::reportSuccess(uint32_t) const’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h:35:14: error: ‘_deleteCallback’ was not declared in this scope if (!_deleteCallback) return Deferred::reportSuccess(); ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h:38:9: error: ‘_deleteCallback’ was not declared in this scope _deleteCallback(messagecount); ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h: In member function ‘AMQP::DeferredDelete& AMQP::DeferredDelete::onSuccess(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferreddelete.h:77:9: error: ‘_deleteCallback’ was not declared in this scope _deleteCallback = callback; ^~~~~~~~~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:64:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h: At global scope: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h:32:5: error: ‘CancelCallback’ does not name a type CancelCallback _cancelCallback; ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h:72:37: error: ‘CancelCallback’ does not name a type DeferredCancel &onSuccess(const CancelCallback &callback) ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h:85:37: error: ‘SuccessCallback’ does not name a type DeferredCancel &onSuccess(const SuccessCallback &callback) ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h:85:21: error: ‘AMQP::DeferredCancel& AMQP::DeferredCancel::onSuccess(const int&)’ cannot be overloaded DeferredCancel &onSuccess(const SuccessCallback &callback) ^~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h:72:21: error: with ‘AMQP::DeferredCancel& AMQP::DeferredCancel::onSuccess(const int&)’ DeferredCancel &onSuccess(const CancelCallback &callback) ^~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h: In member function ‘AMQP::DeferredCancel& AMQP::DeferredCancel::onSuccess(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h:75:9: error: ‘_cancelCallback’ was not declared in this scope _cancelCallback = callback; ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredcancel.h:75:9: note: suggested alternative: ‘callback’ _cancelCallback = callback; ^~~~~~~~~~~~~~~ callback In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:65:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h: At global scope: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:33:5: error: ‘MessageCallback’ does not name a type; did you mean ‘MessageImpl’? MessageCallback _messageCallback; ^~~~~~~~~~~~~~~ MessageImpl /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:39:5: error: ‘EmptyCallback’ does not name a type EmptyCallback _emptyCallback; ^~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:45:5: error: ‘SizeCallback’ does not name a type SizeCallback _sizeCallback; ^~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:88:34: error: ‘MessageCallback’ does not name a type; did you mean ‘MessageImpl’? DeferredGet &onSuccess(const MessageCallback &callback) ^~~~~~~~~~~~~~~ MessageImpl /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:102:35: error: ‘MessageCallback’ does not name a type; did you mean ‘MessageImpl’? DeferredGet &onReceived(const MessageCallback &callback) ^~~~~~~~~~~~~~~ MessageImpl /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:116:34: error: ‘MessageCallback’ does not name a type; did you mean ‘MessageImpl’? DeferredGet &onMessage(const MessageCallback &callback) ^~~~~~~~~~~~~~~ MessageImpl /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:129:32: error: ‘EmptyCallback’ does not name a type DeferredGet &onEmpty(const EmptyCallback &callback) ^~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:142:31: error: ‘SizeCallback’ does not name a type DeferredGet &onSize(const SizeCallback &callback) ^~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h: In member function ‘AMQP::DeferredGet& AMQP::DeferredGet::onSuccess(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:91:9: error: ‘_messageCallback’ was not declared in this scope _messageCallback = callback; ^~~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h: In member function ‘AMQP::DeferredGet& AMQP::DeferredGet::onReceived(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:105:9: error: ‘_messageCallback’ was not declared in this scope _messageCallback = callback; ^~~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h: In member function ‘AMQP::DeferredGet& AMQP::DeferredGet::onMessage(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:119:9: error: ‘_messageCallback’ was not declared in this scope _messageCallback = callback; ^~~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h: In member function ‘AMQP::DeferredGet& AMQP::DeferredGet::onEmpty(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:132:9: error: ‘_emptyCallback’ was not declared in this scope _emptyCallback = callback; ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:132:9: note: suggested alternative: ‘callback’ _emptyCallback = callback; ^~~~~~~~~~~~~~ callback /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h: In member function ‘AMQP::DeferredGet& AMQP::DeferredGet::onSize(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:145:9: error: ‘_sizeCallback’ was not declared in this scope _sizeCallback = callback; ^~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/deferredget.h:145:9: note: suggested alternative: ‘callback’ _sizeCallback = callback; ^~~~~~~~~~~~~ callback In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:66:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h: At global scope: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:38:5: error: ‘SuccessCallback’ does not name a type SuccessCallback _readyCallback; ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:44:5: error: ‘ErrorCallback’ does not name a type ErrorCallback _errorCallback; ^~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:50:26: error: ‘MessageCallback’ was not declared in this scope std::mapstd::string,MessageCallback _consumers; ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:50:26: note: suggested alternative: ‘MessageImpl’ std::mapstd::string,MessageCallback _consumers; ^~~~~~~~~~~~~~~ MessageImpl /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:50:41: error: template argument 2 is invalid std::mapstd::string,MessageCallback _consumers; ^ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:50:41: error: template argument 4 is invalid /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:168:24: error: ‘SuccessCallback’ does not name a type void onReady(const SuccessCallback &callback) ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:185:24: error: ‘ErrorCallback’ does not name a type void onError(const ErrorCallback &callback) ^~~~~~~~~~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:66:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:632:56: error: ‘MessageCallback’ does not name a type; did you mean ‘MessageImpl’? void install(const std::string &consumertag, const MessageCallback &callback) ^~~~~~~~~~~~~~~ MessageImpl In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:66:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h: In member function ‘void AMQP::ChannelImpl::onReady(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:171:9: error: ‘_readyCallback’ was not declared in this scope _readyCallback = callback; ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:171:9: note: suggested alternative: ‘_newestCallback’ _readyCallback = callback; ^~~~~~~~~~~~~~ _newestCallback /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:174:49: error: expression cannot be used as a function if (_state == state_connected) callback(); ^ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h: In member function ‘void AMQP::ChannelImpl::onError(const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:188:9: error: ‘_errorCallback’ was not declared in this scope _errorCallback = callback; ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:188:9: note: suggested alternative: ‘_newestCallback’ _errorCallback = callback; ^~~~~~~~~~~~~~ _newestCallback /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:191:76: error: expression cannot be used as a function if (_state != state_connected) callback("Channel is in error state"); ^ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:66:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h: In member function ‘void AMQP::ChannelImpl::reportReady()’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:545:13: error: ‘_readyCallback’ was not declared in this scope if (_readyCallback) _readyCallback(); ^~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:545:13: note: suggested alternative: ‘_newestCallback’ if (_readyCallback) _readyCallback(); ^~~~~~~~~~~~~~ _newestCallback /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h: In member function ‘void AMQP::ChannelImpl::install(const string&, const int&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:635:33: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘const string {aka const std::__cxx11::basic_string}’) if (callback) _consumers[consumertag] = callback; ^ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:638:25: error: request for member ‘erase’ in ‘((AMQP::ChannelImpl*)this)->AMQP::ChannelImpl::_consumers’, which is of non-class type ‘int’ else _consumers.erase(consumertag); ^~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h: In member function ‘void AMQP::ChannelImpl::uninstall(const string&)’: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channelimpl.h:648:20: error: request for member ‘erase’ in ‘((AMQP::ChannelImpl*)this)->AMQP::ChannelImpl::_consumers’, which is of non-class type ‘int’ _consumers.erase(consumertag); ^~~~~ In file included from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/../amqpcpp.h:67:0, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/includes.h:11, from /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/src/array.cpp:7: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channel.h: At global scope: /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channel.h:66:24: error: ‘SuccessCallback’ does not name a type void onReady(const SuccessCallback &callback) ^~~~~~~~~~~~~~~ /root/rabbitmqsamples/rabbitmq-cpp-tutorials-master/3rdparty/AMQP-CPP-2.1.4/amqpcpp/channel.h:79:24: error: ‘ErrorCallback’ does not name a type void onError(const ErrorCallback &callback) ^~~~~~~~~~~~~ make[2]: *** [3rdparty/AMQP-CPP-2.1.4/CMakeFiles/amqp-cpp.dir/build.make:82: 3rdparty/AMQP-CPP-2.1.4/CMakeFiles/amqp-cpp.dir/src/array.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:199: 3rdparty/AMQP-CPP-2.1.4/CMakeFiles/amqp-cpp.dir/all] Error 2 make: *** [Makefile:103: all] Error 2

resmytomy avatar Jan 12 '21 07:01 resmytomy