Altera_Forum
Honored Contributor
20 years agoC++ in Nios II IDE?
I'd like to write some C++ code for my Nios II, but I haven't been able to compile a simple project or find a scrap of documentation on how to use C++ in the IDE. The fact that I can create a "C/c++ Project" gives me hope, but even a simple program like this fails to compile:
#include <iostream>
int main(int argc, char ** argv)
{
cout << "Hello" << endl;
} I'm using N2IDE 1.0.0 build 316. It looks like the nios2-elf-gcc compiler ships with all the standard C++ header and library files, so I tried adding library and include directories in the project properties dialog, to no effect. What am I missing? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif