IBM Streams 4.3.0

Configuring a C++ project

You can configure the location of include, source, and build files for a C++ project. You can also configure the C++ project to build automatically when you edit a .hpp or a .cpp file.

Procedure

  1. Configure the include path of the C++ project.
    1. In the Project Explorer view, right-click the C++ project that you created, and click Properties.
    2. Expand C/C++ General and select Paths and symbols.
    3. On the Includes tab, under Languages, select GNU C++, and then click Add.
    4. In the Add Directory Path window, click Workspace.
    5. Select the include folder from the C++ project, and then click OK.
  2. Configure the source location for the C++ project.
    1. In the Project Explorer view, right-click the C++ project that you created, and click Properties.
    2. Expand C/C++ General and select Paths and symbols.
    3. On the Source Location tab, click Link Folder.
    4. Select the Link to folder in file system option.
    5. Click Browse to select the SPL Project/impl/src as the source directory.
  3. Configure the build directory for the C++ Project.
    1. In the Project Explorer view, right-click the C++ project that you created, and click Properties.
    2. Select C/C++ Build.
    3. On the Builder Settings tab, make sure the Generate Makefiles automatically option is not selected.
    4. In the Build directory field, specify SPL Project/impl as the build directory.
  4. Optional: Build the C++ project automatically when a .cpp or .hpp file is changed:
    1. In the Project Explorer view, right-click the C++ project that you created, and click Properties.
    2. Expand C/C++ Build.
    3. On the Behavior tab, select the Build on resource save (Auto build) option.