Boost cpp lib installation, cannot open "boost/config.hpp" works on g++

I am currently working on elementary OS 5.1.2 Hera x86_64.
I am having issues installing the boost cpp library on platform IO, it shows up these errors.

cannot open source file “boost/config.hpp” (dependency of “/usr/include/boost/math/interpolators/cubic_b_spline.hpp”)

cannot open source file “boost/config.hpp” (dependency of “/usr/include/boost/random/mersenne_twister.hpp”)

cannot open source file “boost/assert.hpp” (dependency of “/usr/include/boost/random/uniform_real_distribution.hpp”)
Here’s my platform io.ini

[env:nucleo_f411re]
platform = ststm32
board = nucleo_f411re
framework = arduino
lib_ldf_mode = chain+
lib_deps =
    https://github.com/mpflaga/Arduino-MemoryFree.git
    /usr/include/boost/math/interpolators/cubic_b_spline.hpp
    /usr/include/boost/random/mersenne_twister.hpp
    /usr/include/boost/random/uniform_real_distribution.hpp
    ;https://github.com/boostorg/boost.git
    ;https://github.com/boostorg/math.git
    ;https://github.com/boostorg/random.git

It even shows the libs are included in the lib manager…
Screenshot from 2020-05-16 07-28-29

and these are my code header files
Screenshot from 2020-05-16 07-25-08

With the same header files, my code compiles well on the g++ compiler. ie
Screenshot from 2020-05-16 07-32-01

I have referred to the following links still no help …