Engineering

 View Only

 Rhapsody v10.0 - boost library installation

Andrew Bland's profile image
Andrew Bland posted Sat June 21, 2025 03:51 PM

Hello Forum,

I recently installed boost 1_88_0 on my computer.
I am trying to use the json functionality which I have working on MSVC, but when I apply the same code to Rhapsody I get:
fatal error: boost/json/src.hpp: No such file or directory  | #include <boost/json/src.hpp> message error.

I have what I believe are the correct environmental settings on my computer and have tried including the paths to the header files and libraries in different places, but I cannot get round the issue.

I have checked the Rhapsody.ini file and cannot find any reference to the boost path which should be C:\boost_1_88_0.

Can anyone advise on where I should place the path to the include directory so the compiler can see <boost/json/src.hpp>.
Alternatively, provide me the syntax for the Rhapsody.ini file.

Thank you

Andrew

Martin Stockl's profile image
Martin Stockl IBM Champion

Hi Andrew,

in which context are you trying to use boost libraries within Rhapsody? 

I'm assuming the following:

  • you are trying to develop a C++ application within Rhapsody Developer Edition for C++, 
  • in Rhapsody you created a component, which selects the packages, which contain the classes, that shall build your application in your scope,
  • the component contains a configuration, which selects your build environment, like MSVC or Cygwin, or MinGW, or any other,
  • now your classes shall include headers like <boost/json/src.hpp> and you want your compiler to find these files during build process.

There are at least three possibilities to achieve this goal:

1. use the entry fields of your current configuration to add path definitions exactly where needed:

2. Modify Properties of your selected build environment (in my case Cygwin) on project level to add such an Include Path by default for all configurations (useful if you defined several configurations using boost libraries), e.g. the template for the makefile content:



3. Create a new environment, which contains all required settings to build applications based on boost libraries automatically.
Such an environment can be easily added via siteC++.prp in Rhapsody's Properties installation folder. 
Afterwards you can select an environment like CygwinBoost or MSVCboost from the Environment drop down list in your configuration.

P.S. do not forget to do the same for the libraries to be linked.

Hope this helps,
Martin.