User guide
Tutorials
Building the Project
Building a project in the Nios II IDE compiles and links all the source code associated with the
project and the system library project. The result of building is an executable file (.elf) that
you can run or debug.
Use the following methods to build the project:
Right-click on the project in the Nios II C/C++ Projects view, and click Build Project.
Note: Make sure you build the application project tutorial, not the system library
tutorial_syslib. Building the system library does not create an executable file.
When building a project, the Nios II IDE first builds all other projects that the current project
references. Therefore, the system library project is usually built first. Building a project the
first time might take a few minutes while the Nios II IDE builds the system library.
Subsequent builds are faster.
In the IDE workbench, the Console view displays messages generated by the GCC tool-chain
during compilation. The Problems view displays any warnings or errors. (In this example,
there are no errors.)
Note: If building the project generates warnings or errors, the Problems view appears
automatically. You can double-click each row to jump to the line of code that caused the
warning/error.
Note: The information displayed in the Console and Problems views depends on the
project selected in the Nios II C/C++ Projects view. If you accidentally select a different
project, you will see unexpected (or no) text in the Console and Problems views.
After successfully building the project, you can download and run the application on your
development board. Refer to Running the Project
for instructions. To debug your application
on the board, refer to Debugging the Project
.
Next: Running the Project
Previous: Creating a Nios II C/C++ Application Project
Related Nios II IDE Help Topics
Nios II C/C++ Projects View (Nios II C/C++ Perspective)—Contains details on options
available by right-clicking in the Nios II C/C++ Projects view.
13