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
- Configure the include path of the synchronized C++ project in the remote environment..
- In the Project Explorer view, right-click the C++ project that you created, and click Properties.
- Expand C/C++ General and select Paths and symbols.
- On the Includes tab, under Languages, select GNU C++, and then click Add.
- 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.
- Configure the source location for the synchronized C++ project in the remote environment..
- In the Project Explorer view, right-click the remote C++ project that you created, and click Properties.
- Expand C/C++ General and select Paths and symbols.
- On the Source Location tab, click Link Folder.
- Select the Link to folder in file system option.
- From the Choose file system list, select either JSch (preferred) or the RSE.
- Click Browse, select the remote connection from the list, and select the SPL Project/impl/src folder on the remote server.
- Configure the build directory for the C++ project in the remote environment..
- In the Project Explorer view, right-click the C++ project that you created, and click Properties.
- Select C/C++ Build.
- On the Builder Settings tab, make sure the Generate Makefiles automatically option is not selected.
- 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.
- Optional: Build the C++ project automatically when a .cpp or .hpp file is changed:
- In the Project Explorer view of the remote development environment, right-click the C++ project that you created, and click Properties.
- Expand C/C++ Build.
- On the Behavior tab, select the Build on resource save (Auto build)option.
- Optional: To create a makefile:
- In the Project Explorer view of your local environment, right-click the SPL Project/impl folder and click New > File.
- In the File name field, enter the makefile name and click OK.
- In the Project Explorer view of the remote development environment, right-click the C++ project that you created and click New > File.
- In the File window, click Advanced.
- Select the Link to folder in file system option.
- From the Choose file system list, select either JSch (preferred) or the RSE.
- 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.
- Add /MakefileName to the end of the path to select the remote makefile, and then click Finish.
Parent topic: Creating a synchronized C/C++ project