Create a C/C++ project to edit and build the implementation
of the C++ operator. Link the C++ project to the SPL project that
you created earlier so that the artifacts in the C++ project can be
accessed by your SPL applications.
About this task
With this setup, the C++ shared library artifacts are bundled with the SPL project instead of keeping the C++ library code separate.
Procedure
- From the menu bar, click .
- In the Select a wizard window, expand C/C++,
select C++ Project, and then click Next.
- In the Create a C++ Project window,
in the Project name field, enter a name for
the C++ project.
- From the Project type list, select Makefile
Project/Empty Project, and then click Finish.
- Create an include folder
in the C++ project and link this folder to the impl/include directory
of the SPL project.
- In the Project Explorer view, right-click the C++ project that you created, and then select .
- In the Folder window, click Advanced.
- Click Link to alternate location (Linked
Folder).
- To link this folder, click Browse and
select SPL Project/impl/include.
- Leave the Folder name field as include, and click Finish.
The include folder is created in the C++ project. The include folder is a linked folder; file resources in this folder are in the impl/src folder of the SPL project.
- Repeat step 5 to create bin and lib folders
and link these folders to the bin and lib folders
in the SPL project.