IBM Streams 4.3.0
Creating a synchronized C/C++ project
Create a synchronized C/C++ project to edit and build the implementation of the C++ operator when you work in a remote development environment. Link this C++ project to an SPL project that you created earlier, so that the artifacts in the remote C++ project can be accessed by your SPL applications.
Procedure
- From the menu bar, click File > New > Project.
- In the New Project window, expand Other, select Synchronized C/C++ Project, and then click Next.
- In the New Synchronized Project window, in the Project name field, enter a name for the remote C++ project.
- In the Remote directory section, select an existing connection to a remote host or create a new connection. To set up a new connection:
- Enter a name for the connection.
- Enter the host information, which is the host name or IP address of the remote server and the user ID for establishing the connection.
- Select the authentication method for this connection:
- Public key based authentication: Requires a passphrase.
- Password based authentication: Requires a password.
- Optional: Configure advanced settings, such as connection or SSH proxy settings.
Note: These connections are not the same as RSE connections. - Select the directory on the remote host where the project files are to be synchronized.
- In the Project type section, expand Makefile Project and select Empty Project.
- In the Remote Toolchain section, select at least Linux GCC.
- In the Local Toolchain section, select toolchain based on your local system setup.
- Click Finish to create the synchronized C++ project.
- Create an include folder in the synchronized C++ project and link this folder to the impl/include directory of the SPL project on the remote server.
- In the Project Explorer view, right-click the C++ project that you created, and then select New > Folder.
- In the Folder window, click Advanced.
- Click Link to alternate location (Linked Folder).
- From the Choose file system list, select either JSch (preferred) or the RSE. This selection determines the remote service provider: Built-in SSH (JSch) or the Eclipse Remote Systems Explorer (RSE).
- Click Browse, select the remote connection from the list, and select the SPL Project/impl/include folder on the remote server.
- Leave the Folder name field as include, and click Finish.
- Repeat step 10 to create the bin and lib folders and link these folders to the bin and lib folders in the SPL project on the remote server.
- 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.
Parent topic: Setting up for C++ operator development