AMQPメッセージを大規模なC++プログラムに統合するために、SUSE Linuxシステムにqpid陽子0.14.0ライブラリをインストールしようとしています。インストールには "cmake"と "make all"が必要です。 『構造体陽子::はdelivery_mode』エラーから 『はdelivery_mode』の意味は」変化を研究するApacheのqpidをインストールするときに "エラー:変更の意味"
Scanning dependencies of target qpid-proton-cpp
[ 32%] Building CXX object proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/connection.cpp.o
In file included from {Install_dir}/proton-c/bindings/cpp/include/proton/./././link.hpp:31,
from {Install_dir}/proton-c/bindings/cpp/include/proton/././receiver.hpp:27,
from {Install_dir}/proton-c/bindings/cpp/include/proton/./session.hpp:27,
from {Install_dir}/proton-c/bindings/cpp/include/proton/connection.hpp:28,
from {Install_dir}/proton-c/bindings/cpp/src/connection.cpp:24:
{Install_dir}/proton-c/bindings/cpp/include/proton/././././sender_options.hpp:87: error: declaration of ‘proton::sender_options& proton::sender_options::delivery_mode(proton::delivery_mode)’
{Install_dir}/proton-c/bindings/cpp/include/proton/./././././delivery_mode.hpp:30: error: changes meaning of ‘delivery_mode’ from ‘struct proton::delivery_mode’
In file included from {Install_dir}/proton-c/bindings/cpp/include/proton/./././link.hpp:32,
from {Install_dir}/proton-c/bindings/cpp/include/proton/././receiver.hpp:27,
from {Install_dir}/proton-c/bindings/cpp/include/proton/./session.hpp:27,
from {Install_dir}/proton-c/bindings/cpp/include/proton/connection.hpp:28,
from {Install_dir}/proton-c/bindings/cpp/src/connection.cpp:24:
{Install_dir}/proton-c/bindings/cpp/include/proton/././././receiver_options.hpp:83: error: declaration of ‘proton::receiver_options& proton::receiver_options::delivery_mode(proton::delivery_mode)’
{Install_dir}/proton-c/bindings/cpp/include/proton/./././././delivery_mode.hpp:30: error: changes meaning of ‘delivery_mode’ from ‘struct proton::delivery_mode’
make[2]: *** [proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/connection.cpp.o] Error 1
make[1]: *** [proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/all] Error 2
make: *** [all] Error 2
このことを信じて私をリード:「すべて作る」を呼び出す際に、ビルドは、エラーをスローし、32%に完全取得します構造体と同じ名前を持つコンストラクタ関数を実行する問題である。私は以下のdeliver_modeの構造体宣言を含むよ。私はこれらのライブラリをインストールするために得ることができる方法についてどのような考えは?ありがとう!
namespace proton {
/// The message delivery policy to establish when opening a link.
/// This structure imitates the newer C++11 "enum class" so that
/// The enumeration constants are in the delivery_mode namespace.
struct delivery_mode {
/// Delivery modes
enum modes {
/// No set policy. The application must settle messages
/// itself according to its own policy.
NONE = 0,
/// Outgoing messages are settled immediately by the link.
/// There are no duplicates.
AT_MOST_ONCE,
/// The receiver settles the delivery first with an
/// accept/reject/release disposition. The sender waits to
/// settle until after the disposition notification is
/// received.
AT_LEAST_ONCE
};
/// @cond INTERNAL
delivery_mode() : modes_(NONE) {}
delivery_mode(modes m) : modes_(m) {}
operator modes() { return modes_; }
/// @endcond
private:
modes modes_;
};
}
proton :: receiver_optionsまたはproton :: sender_optionsは表示されません。どこにありますか? –