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

required boost version is not sufficient #301

Open
kived opened this issue Sep 15, 2021 · 1 comment
Open

required boost version is not sufficient #301

kived opened this issue Sep 15, 2021 · 1 comment

Comments

@kived
Copy link

kived commented Sep 15, 2021

The library currently requires boost 1.47 or greater according to CMakeLists.txt. I wanted to build this library on CentOS 7 (required platform, not my choice) which has boost 1.53 available by default. However, building under this version results in many errors of the form:

[5/12] Building CXX object CMakeFiles/SimpleAmqpClient.dir/src/BasicMessage.cpp.o
FAILED: CMakeFiles/SimpleAmqpClient.dir/src/BasicMessage.cpp.o 
/opt/rh/devtoolset-8/root/usr/bin/c++  -DSAC_SSL_SUPPORT_ENABLED -DSimpleAmqpClient_EXPORTS -I. -I../src -Wall -Wextra -O2 -DNDEBUG -fPIC   -std=c++98 -MD -MT CMakeFiles/SimpleAmqpClient.dir/src/BasicMessage.cpp.o -MF CMakeFiles/SimpleAmqpClient.dir/src/BasicMessage.cpp.o.d -o CMakeFiles/SimpleAmqpClient.dir/src/BasicMessage.cpp.o -c ../src/BasicMessage.cpp
../src/BasicMessage.cpp: In member function 'const string& AmqpClient::BasicMessage::ContentType() const':
../src/BasicMessage.cpp:77:33: error: 'class boost::optional<std::basic_string<char> >' has no member named 'value'
     return m_impl->content_type.value();

I was able to build with boost 1.69 instead which is available in EPEL (boost169*). I'm not sure when the c++17 compatible interface used here was added to boost but it should be somewhere between those two versions 1.53 and 1.69.

@woshilapin
Copy link

On Boost 1.55, the method optional.value() doesn't exist. On Boost 1.56, it does... but we haven't gone that far to entirely test on 1.56.

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

2 participants