Hello, I am currently facing errors when I try to run an example file from the Boost.redis repository. I had to download Boost 1.84.0 from source and I built them under the home directory, as Boost.redis is automatically present in Boost 1.84.0.
Build Output:
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/home/adarsh9401/boost_1_84_0
The following directory should be added to linker library paths:
/home/adarsh9401/boost_1_84_0/stage/lib
Now, in order to test if my source installation was valid I ran the following boost-version.cpp file to test if the installation was successful.
Apologies, I have found the fix. I forgot to add the #include <boost/redis/src.hpp> as mentioned in the docs. I forgot I was trying to compile a single file per se.
Hello, I am currently facing errors when I try to run an example file from the Boost.redis repository. I had to download Boost 1.84.0 from source and I built them under the
home
directory, as Boost.redis is automatically present in Boost 1.84.0.Build Output:
Now, in order to test if my source installation was valid I ran the following
boost-version.cpp
file to test if the installation was successful.I compiled this file as follows:
This file successfully compiled, and gave the following output.
Now, when I compiled this example file (https://github.com/boostorg/redis/blob/develop/example/cpp17_intro.cpp) from the Boost Redis repository using the following command - (I have named the file as boost-redis-test.cpp on my local)
Have included boost_system, pthread, ssl and crypto as asio is dependent on them.
I have also tried using the
-L
flag, and mapping it to/home/adarsh9401/boost_1_84_0/stage/lib
, which returned the same error log.On Compilation:
Could you suggest on how to proceed ?