Forum Discussion
Altera_Forum
Honored Contributor
14 years agoC++ Nios Program
Hello, Can anyone point me to an example of actually building a Nios-II project with cpp? I have tried many ways and it always comes down to a build error. The problem seems to be related to the a...
Altera_Forum
Honored Contributor
14 years agoAfter much trial and error I have found a solution to building a simple CPP project.
- Build the BSP as usual (I make sure to check the enable small lib and small drivers).
- Build a NIOS-II project based on the BSP.
- With the project selected, add a new file to the project. I used the "File from Template". Make sure it has the .cpp extension. Now you should have the file insterted in your project, but it will have no code inside.
- Open the file for editing and insert the standard main() function, I used: