--
You received this message because you are subscribed to the Google Groups "simpleamqpclient-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simpleamqpclient-...@googlegroups.com.
To post to this group, send email to simpleamqpc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simpleamqpclient-users/2b32efcd-3a9e-4a77-acb0-48eb1c865dd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Exchanges are not automatically deleted when you disconnect from the broker. If you attempt to declare an exchange with the same name, but a different type, you will get a precondition error, you need to delete the old one before you can redeclare it as a different type. FYI: generally there will be a bit more information if you print out the message() of any exception thrown by the library, which will help when debugging.Not sure what to say about the missing symbol. I'd need more information to help you debug that.
On Thu, Dec 1, 2016 at 7:43 PM <lqj19...@gmail.com> wrote:
--When I try to define the type of exchange, I encounter a problem: "unresolved external symbol: AmqpClient::Channel::EXCHANGE_TYPE_DIRECT". I don't know how to resolve it so I use "fanout", "direct" and "topic" to replace it. But I find that only "fanout" works well, the other two will cause the "AmqpClient::PreconditionFailedException". I have no idea how to deal with the problem.The code is:Channel::ptr_t channel = Channel::Create();
channel->DeclareExchange("test", "direct");What can I do?
You received this message because you are subscribed to the Google Groups "simpleamqpclient-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simpleamqpclient-users+unsub...@googlegroups.com.
Thank you soooo much for helping me! I've learned a lot from your code and reply!The link error happens when I used "AmqpClient::Channel::EXCHANGE_TYPE_DIRECT" other than "direct" to define the type of exchange. The information is :"error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const AmqpClient::Channel::EXCHANGE_TYPE_DIRECT" (?EXCHANGE_TYPE_DIRECT@Channel@AmqpClient@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)"The other two types also have the same error. And I find another person has the same problem. https://github.com/kingback1/SimpleAmqpClient-examples/issues/1.
在 2016年12月2日星期五 UTC+8下午1:52:56,Alan Antonuk写道:Exchanges are not automatically deleted when you disconnect from the broker. If you attempt to declare an exchange with the same name, but a different type, you will get a precondition error, you need to delete the old one before you can redeclare it as a different type. FYI: generally there will be a bit more information if you print out the message() of any exception thrown by the library, which will help when debugging.Not sure what to say about the missing symbol. I'd need more information to help you debug that.On Thu, Dec 1, 2016 at 7:43 PM <lqj19...@gmail.com> wrote:
--When I try to define the type of exchange, I encounter a problem: "unresolved external symbol: AmqpClient::Channel::EXCHANGE_TYPE_DIRECT". I don't know how to resolve it so I use "fanout", "direct" and "topic" to replace it. But I find that only "fanout" works well, the other two will cause the "AmqpClient::PreconditionFailedException". I have no idea how to deal with the problem.The code is:Channel::ptr_t channel = Channel::Create();
channel->DeclareExchange("test", "direct");What can I do?
You received this message because you are subscribed to the Google Groups "simpleamqpclient-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simpleamqpclient-...@googlegroups.com.
To post to this group, send email to simpleamqpc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simpleamqpclient-users/2b32efcd-3a9e-4a77-acb0-48eb1c865dd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "simpleamqpclient-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simpleamqpclient-...@googlegroups.com.
To post to this group, send email to simpleamqpc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simpleamqpclient-users/57a4b960-288f-4bad-9b3d-44756aeaaa40%40googlegroups.com.