IBM Streams 4.2.1

Configuring a synchronized C/C++ project

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

Procedure

  1. Configure the include path of the synchronized C++ project in the remote environment..
    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, specify the remote SPL Project/impl/include directory. You must enter this directory name manually as the provided buttons do not allow for browsing to the remote server.
  2. Configure the source location for the synchronized C++ project in the remote environment..
    1. In the Project Explorer view, right-click the remote 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. From the Choose file system list, select either JSch (preferred) or the RSE.
    6. Click Browse, select the remote connection from the list, and select the SPL Project/impl/src folder on the remote server.
  3. Configure the build directory for the C++ project in the remote environment..
    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 the remote SPL Project/impl directory. You must enter this directory name manually as the provided buttons do not allow for browsing to the remote server.
  4. Optional: Build the C++ project automatically when a .cpp or .hpp file is changed:
    1. In the Project Explorer view of the remote development environment, 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.
  5. Optional: To create a makefile:
    1. In the Project Explorer view of your local environment, right-click the SPL Project/impl folder and click New > File.
    2. In the File name field, enter the makefile name and click OK.
    3. In the Project Explorer view of the remote development environment, right-click the C++ project that you created and click New > File.
    4. In the File window, click Advanced.
    5. Select the Link to folder in file system option.
    6. From the Choose file system list, select either JSch (preferred) or the RSE.
    7. Click Browse, select the remote connection from the list, and select the SPL Project/impl folder on the remote server. You can select only a folder in this window. Therefore, you have to complete the file name in the following step.
    8. Add /MakefileName to the end of the path to select the remote makefile, and then click Finish.