-1

I installed Boost-1.83 (already tested) and I am now trying to build quantlib 1.31.1 by following this tutorial https://www.quantlib.org/install/vc10.shtml. I made sure it is working properly in a separated project.

While building Quantlib, I got the errors

C:\softwares\QuantLib-1.31.1\test-suite\vpp.hpp(23,10): fatal error C1083: Impossible d'ouvrir le fichier include : 'boost/XXX/YYY.hpp' : No such file or directory (compilation du fichier source vpp.cpp)

each time a cpp file is dependant from a boost lib.

I setted up the properties as explained in the guide and tried several include paths (all ended up with the same issue).

properties

in Properties>VC++ directories include directories: C:\softwares\boost_1_83_0;C:\softwares\boost_1_83_0\include\boost-1_83;$(IncludePath) Library directories: C:\softwares\boost_1_83_0\lib;$(LibraryPath)

I added both C:\softwares\boost_1_83_0 and C:\softwares\boost_1_83_0\include\boost-1_83 for test purpose only but my guess is that the 1st should be enough.

My problem looks similar to this one QuantLib Boost_1_72 VS2019 Build Error : "Cannot open include file boost/config.hpp: no such file or directory". It seems aszpa was able to fix it though, and not me. I obviously had a look and followed the solution proposed by Luigi.

Does anyone have an hint that could help me make everything works properly?

All the best


sum up of what I tried:

Follow the installation guide: https://www.quantlib.org/install/vc10.shtml

Luigi answer form the thread: QuantLib Boost_1_72 VS2019 Build Error : "Cannot open include file boost/config.hpp: no such file or directory"

  • How did you _install_ Boost, exactly? A missing config.hpp tends to indicate that you unpacked the source directory instead of actually building it. – Botje Aug 25 '23 at 12:58
  • From my work network, I cannot see images from imgur.com. Can you share the properties in a text format? – YSC Aug 25 '23 at 12:58
  • @Botje OP's error doesn't mention config.hpp ;) – YSC Aug 25 '23 at 12:59
  • 1
    To answer you all 1. I built boost properly, and made sure I could include& use it in a kinda "helloworld" project 2. sure, I'll add that part later 3. I have the same error for every boost dependancy, the one I added is simply an example, the same goes for boost/config.hpp – Raphael Poix Aug 25 '23 at 13:03
  • Instead of following instructions for an IDE that is over a decade old, why not use the [CMake build system](https://github.com/lballabio/QuantLib/blob/master/CMakeLists.txt) that the QuantLib people have so thoughtfully constructed? Then you can just use conan or vcpkg to download and install boost (and other dependencies) for you and still have a nice VS project to work with (since VS has native support for CMake) – Botje Aug 25 '23 at 14:32
  • Just to check the include path: what is the full path to the "config.hpp" file in your Boost installation? Also, the error you mention is from a file in the test suite: does this mean that the library compiled? – Luigi Ballabio Aug 26 '23 at 15:49

0 Answers0