To create a C/C++ project:
If you want to build a: | Select: |
---|---|
C Project | |
QNX C Project | |
C++ Project | |
QNX C++ Project |
| ! $ ( " ) & ` : ; \ ' * ? [ ] # ~ = % < > { }
as they may cause problems later.
If you're building a library, see Extra libraries and Extra library paths.
After specifying an Executable template, the workbench creates a project with only the metadata files required for your project type, and automatically creates a makefile for you. You can modify these source files, and provide them for the project's target.
When you create a shared library, its name is recorded in a special dynamic section. You can display the information in this section to see a SONAME record. For example, you can use the following:
ntoarm-readelf -d libname.so
When you link against this library, your application will look for that name.
When you perform a make install, the .so is copied to .so.1, and a .so symbolic link is created to point to it. You'll also notice that .so will get the right version. If you install a .so.2 (where the .so points to it), your old version 1 clients can still run.
A toolchain represents the specific tools (such as a compiler, linker, and assembler) used to build your project. Additional tools, such as a debugger, can also be associated with a toolchain. Depending on the compilers installed on your system, there might be several toolchains available to select from.
The fields for each panel are described in the Project properties section, below.
After you select the correct parser for your development environment and build your project, you can view the components of the .o file in the Project Explorer view. You can also view the contents of the .o file in the C/C++ editor.
The IDE creates your new project in your workspace. Your new project is listed in the Project Explorer view. If a message box prompts you to change perspectives, click Yes.
Depending on the type of project you choose, the New Project wizard shows a variety of different tabs that you can use to configure your new C/C++ project. For information about these tabs, see Project properties.