Creating a C/C++ Project
- 更新时间2023-02-21
- 阅读时长2分钟
- Switch to the C/C++ perspective.

- Select File»New»Project to open the New Project Wizard.
- Expand the C/C++ folder and select C Project or C++ Project depending on the programming language you wish to use.
- Click Next to open the C Project page.
- Enter a project name in the Project name text box.
- Select a project type under the Executable folder in the Project type listbox.
- Select Cross GCC in the Toolchains listbox to enable cross-compilation, which configures the compiler to create executable code for embedded systems, such as an NI Linux Real-Time target.
- Click Next to open the Select Configurations page.
- Enable the Debug and Release checkboxes.
- Click Next to open the Cross GCC Command page.
- In the Cross compiler prefix text box, enter one of the values from the following list, including the hyphen (-) at the end, to specify the correct compiler for the NI Linux Real-Time target:
- Linux ARM-based targets
(2013 software stack) arm-none-linux-gnueabi-
(2014 software stack) arm-nilrt-linux-gnueabi-
- Linux x64-based targets
(2014 software stack) x86_64-nilrt-linux-
- Linux ARM-based targets
- In the Cross compiler path text box, browse to the location of the correct compiler for your target as specified in the following list:
Linux-Arm- Linux ARM-based targets
(2013 software stack) <National Instruments>\Eclipse\toolchain\gcc-4.4-arm\i386\bin
(2014 software stack) <National Instruments>\Eclipse\14.0\arm\sysroots\i686-nilrtsdk-mingw32\usr\bin\armv7a-vfp-neon-nilrt-linux-gnueabi
- Linux x64-based targets
(2014 software stack) <National Instruments>\Eclipse\14.0\x64\sysroots\i686-nilrtsdk-mingw32\usr\bin\x86_64-nilrt-linux
- Linux ARM-based targets
- Click Finish to create your project and return to the workbench view.
After creating a project, you can begin updating a C/C++ project build.