Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why i make the source code have error, i need help #305

Open
HwangHsing opened this issue Feb 21, 2022 · 2 comments
Open

why i make the source code have error, i need help #305

HwangHsing opened this issue Feb 21, 2022 · 2 comments

Comments

@HwangHsing
Copy link

Consolidate compiler generated dependencies of target SimpleAmqpClient
[ 9%] Building CXX object CMakeFiles/SimpleAmqpClient.dir/src/Channel.cpp.o
In file included from /home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:30:
/home/huangxingyu/rabbitmq-c/build/include/amqp.h:7:2: warning: #warning "amqp.h is deprecated, use rabbitmq-c/amqp.h instead."
In file included from /home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:31:
/home/huangxingyu/rabbitmq-c/build/include/amqp_framing.h:8:2: warning: #warning "amqp_framing.h is deprecated, use rabbitmq-c/framing.h instead.
In file included from /home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:32:
/home/huangxingyu/rabbitmq-c/build/include/amqp_tcp_socket.h:7:2: warning: #warning "amqp_tcp_socket.h is deprecated, use rabbitmq-c/tcp_socket.h instead."
In file included from /home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:34:
/home/huangxingyu/rabbitmq-c/build/include/amqp_ssl_socket.h:9:2: warning: #warning "amqp_ssl_socket.h is deprecated, use rabbitmq-c/ssl_socket.h instead.
In file included from /home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:56:
/home/huangxingyu/SimpleAmqpClient/src/SimpleAmqpClient/Channel.h:162: error: wrong number of arguments specified for ‘deprecated’ attribute
/home/huangxingyu/SimpleAmqpClient/src/SimpleAmqpClient/Channel.h:187: error: wrong number of arguments specified for ‘deprecated’ attribute
/home/huangxingyu/SimpleAmqpClient/src/SimpleAmqpClient/Channel.h:220: error: wrong number of arguments specified for ‘deprecated’ attribute
/home/huangxingyu/SimpleAmqpClient/src/SimpleAmqpClient/Channel.h:255: error: wrong number of arguments specified for ‘deprecated’ attribute
/home/huangxingyu/SimpleAmqpClient/src/SimpleAmqpClient/Channel.h:289: error: wrong number of arguments specified for ‘deprecated’ attribute
/home/huangxingyu/SimpleAmqpClient/src/SimpleAmqpClient/Channel.h:301: error: wrong number of arguments specified for ‘deprecated’ attribute
/home/huangxingyu/SimpleAmqpClient/src/SimpleAmqpClient/Channel.h:326: error: wrong number of arguments specified for ‘deprecated’ attribute
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘bool AmqpClient::Channel::CheckExchangeExists(boost::string_ref)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::exchange’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::type’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::passive’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::durable’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::auto_delete’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::internal’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:481: warning: missing initializer for member ‘amqp_exchange_declare_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::DeclareExchange(const std::string&, const std::string&, bool, bool, bool, const AmqpClient::Table&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::exchange’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::type’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::passive’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::durable’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::auto_delete’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::internal’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:511: warning: missing initializer for member ‘amqp_exchange_declare_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::DeleteExchange(const std::string&, bool)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:534: warning: missing initializer for member ‘amqp_exchange_delete_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:534: warning: missing initializer for member ‘amqp_exchange_delete_t_::exchange’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:534: warning: missing initializer for member ‘amqp_exchange_delete_t_::if_unused’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:534: warning: missing initializer for member ‘amqp_exchange_delete_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::BindExchange(const std::string&, const std::string&, const std::string&, const AmqpClient::Table&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:558: warning: missing initializer for member ‘amqp_exchange_bind_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:558: warning: missing initializer for member ‘amqp_exchange_bind_t_::destination’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:558: warning: missing initializer for member ‘amqp_exchange_bind_t_::source’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:558: warning: missing initializer for member ‘amqp_exchange_bind_t_::routing_key’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:558: warning: missing initializer for member ‘amqp_exchange_bind_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:558: warning: missing initializer for member ‘amqp_exchange_bind_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::UnbindExchange(const std::string&, const std::string&, const std::string&, const AmqpClient::Table&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:586: warning: missing initializer for member ‘amqp_exchange_unbind_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:586: warning: missing initializer for member ‘amqp_exchange_unbind_t_::destination’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:586: warning: missing initializer for member ‘amqp_exchange_unbind_t_::source’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:586: warning: missing initializer for member ‘amqp_exchange_unbind_t_::routing_key’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:586: warning: missing initializer for member ‘amqp_exchange_unbind_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:586: warning: missing initializer for member ‘amqp_exchange_unbind_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘bool AmqpClient::Channel::CheckQueueExists(boost::string_ref)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:605: warning: missing initializer for member ‘amqp_queue_declare_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:605: warning: missing initializer for member ‘amqp_queue_declare_t_::queue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:605: warning: missing initializer for member ‘amqp_queue_declare_t_::passive’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:605: warning: missing initializer for member ‘amqp_queue_declare_t_::durable’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:605: warning: missing initializer for member ‘amqp_queue_declare_t_::exclusive’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:605: warning: missing initializer for member ‘amqp_queue_declare_t_::auto_delete’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:605: warning: missing initializer for member ‘amqp_queue_declare_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:605: warning: missing initializer for member ‘amqp_queue_declare_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘std::string AmqpClient::Channel::DeclareQueueWithCounts(const std::string&, uint32_t&, uint32_t&, bool, bool, bool, bool, const AmqpClient::Table&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:657: warning: missing initializer for member ‘amqp_queue_declare_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:657: warning: missing initializer for member ‘amqp_queue_declare_t_::queue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:657: warning: missing initializer for member ‘amqp_queue_declare_t_::passive’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:657: warning: missing initializer for member ‘amqp_queue_declare_t_::durable’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:657: warning: missing initializer for member ‘amqp_queue_declare_t_::exclusive’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:657: warning: missing initializer for member ‘amqp_queue_declare_t_::auto_delete’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:657: warning: missing initializer for member ‘amqp_queue_declare_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:657: warning: missing initializer for member ‘amqp_queue_declare_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::DeleteQueue(const std::string&, bool, bool)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:690: warning: missing initializer for member ‘amqp_queue_delete_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:690: warning: missing initializer for member ‘amqp_queue_delete_t_::queue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:690: warning: missing initializer for member ‘amqp_queue_delete_t_::if_unused’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:690: warning: missing initializer for member ‘amqp_queue_delete_t_::if_empty’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:690: warning: missing initializer for member ‘amqp_queue_delete_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::BindQueue(const std::string&, const std::string&, const std::string&, const AmqpClient::Table&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:714: warning: missing initializer for member ‘amqp_queue_bind_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:714: warning: missing initializer for member ‘amqp_queue_bind_t_::queue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:714: warning: missing initializer for member ‘amqp_queue_bind_t_::exchange’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:714: warning: missing initializer for member ‘amqp_queue_bind_t_::routing_key’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:714: warning: missing initializer for member ‘amqp_queue_bind_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:714: warning: missing initializer for member ‘amqp_queue_bind_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::UnbindQueue(const std::string&, const std::string&, const std::string&, const AmqpClient::Table&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:742: warning: missing initializer for member ‘amqp_queue_unbind_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:742: warning: missing initializer for member ‘amqp_queue_unbind_t_::queue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:742: warning: missing initializer for member ‘amqp_queue_unbind_t_::exchange’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:742: warning: missing initializer for member ‘amqp_queue_unbind_t_::routing_key’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:742: warning: missing initializer for member ‘amqp_queue_unbind_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::PurgeQueue(const std::string&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:761: warning: missing initializer for member ‘amqp_queue_purge_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:761: warning: missing initializer for member ‘amqp_queue_purge_t_::queue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:761: warning: missing initializer for member ‘amqp_queue_purge_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘bool AmqpClient::Channel::BasicGet(AmqpClient::Envelope::ptr_t&, const std::string&, bool)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:886: warning: missing initializer for member ‘amqp_basic_get_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:886: warning: missing initializer for member ‘amqp_basic_get_t_::queue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:886: warning: missing initializer for member ‘amqp_basic_get_t_::no_ack’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::BasicRecover(const std::string&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:922: warning: missing initializer for member ‘amqp_basic_recover_t_::requeue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘std::string AmqpClient::Channel::BasicConsume(const std::string&, const std::string&, bool, bool, bool, uint16_t, const AmqpClient::Table&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:951: warning: missing initializer for member ‘amqp_basic_qos_t_::prefetch_size’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:951: warning: missing initializer for member ‘amqp_basic_qos_t_::prefetch_count’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:951: warning: missing initializer for member ‘amqp_basic_qos_t_::global’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:962: warning: missing initializer for member ‘amqp_basic_consume_t_::ticket’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:962: warning: missing initializer for member ‘amqp_basic_consume_t_::queue’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:962: warning: missing initializer for member ‘amqp_basic_consume_t_::consumer_tag’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:962: warning: missing initializer for member ‘amqp_basic_consume_t_::no_local’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:962: warning: missing initializer for member ‘amqp_basic_consume_t_::no_ack’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:962: warning: missing initializer for member ‘amqp_basic_consume_t_::exclusive’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:962: warning: missing initializer for member ‘amqp_basic_consume_t_::nowait’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:962: warning: missing initializer for member ‘amqp_basic_consume_t_::arguments’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::BasicQos(const std::string&, uint16_t)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:995: warning: missing initializer for member ‘amqp_basic_qos_t_::prefetch_size’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:995: warning: missing initializer for member ‘amqp_basic_qos_t_::prefetch_count’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:995: warning: missing initializer for member ‘amqp_basic_qos_t_::global’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp: In member function ‘void AmqpClient::Channel::BasicCancel(const std::string&)’:
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:1011: warning: missing initializer for member ‘amqp_basic_cancel_t_::consumer_tag’
/home/huangxingyu/SimpleAmqpClient/src/Channel.cpp:1011: warning: missing initializer for member ‘amqp_basic_cancel_t_::nowait’
make[2]: *** [CMakeFiles/SimpleAmqpClient.dir/build.make:90: CMakeFiles/SimpleAmqpClient.dir/src/Channel.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/SimpleAmqpClient.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

i'm not root user, i was installed boost and rabbit-mq、cmake in my work home

@HwangHsing
Copy link
Author

Linux version 3.10.0.514.26.2.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #

gcc 8.2

@HwangHsing
Copy link
Author

ok ,i was resolved this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant