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

exception "invalid AMQP data" thrown when using c++03 or newer #304

Open
NilsKintscher opened this issue Jan 21, 2022 · 0 comments
Open

Comments

@NilsKintscher
Copy link

NilsKintscher commented Jan 21, 2022

The functions Channel::CheckExchangeExists and Channel::CheckQueueExists both throw the following error when the library is linked to a c++ executable which is compiled with c++11 or newer.

terminate called after throwing an instance of 'AmqpClient::AmqpLibraryException'
  what():  invalid AMQP data
  • The library SimpleAmqpClient itself was compiled with C++98
  • I'm using g++10, boost 1.71.0 and rabbitmq-c is compiled with -DENABLE_SSL_SUPPORT=OFF

edit: The four unit tests regarding these two functions fail with this error when line 10 of CMakeLists.txt is changed, for example to set(CMAKE_CXX_STANDARD 20). It might have to do something with boost::string_ref (?)

@NilsKintscher NilsKintscher changed the title exception "invalid AMQP data" thrown when using c++ language revision newer than 03 exception "invalid AMQP data" thrown when using c++03 or newer Jan 23, 2022
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