Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHippo, I did try try your bugfix, but unfortunately the link error is still there.
Here is my minimal C++ program...#include <iostream># include <stdio.h>
using namespace std;
int main()
{
printf ("Hello from STDIO\n"); // This works OK
cout << "Hello from IOSTREAM" << endl; // But this crashes linker!!!
return 0;
} 1) I have found that you can compile more-or-less any valid C code (with a CPP extension), so long as you don't link in any C++ specific stuff. 2) I tried both C++ compilers. (ie. nios2-linux-uclibc-c++ and nios2-linux-uclibc-g++), however they appear to be identical. 3) I'm guessing there's a problem in buildroot's libstdc++, but that's where I'm stumped. Can anyone explain how to run the DejaGnu testsuite, associated with libstdc++ ?