This has something to do with the gcc configuration. Try compiling the following program using g++:
−
−
#include <string>
−
#include <iostream>
−
using namespace std;
−
int main (void)
−
{
−
basic_string <char>a = "thing one";
−
string b = "thing two";
−
cout << a.c_str() << endl;
−
return (a == b);
−
}
−
−
If it fails, then your compiler needs to be set-up differently (how?). On my machine I can compile that test program but still get the error making Octave -- how do we solve this? It has something to do with the shared C++ library versions, check for /usr/lib/libstdc++.so.6 and make sure the right version of that library is being used by gcc -- especially if you had to reinstall gcc to build the fortran support. If it still doesn't work, consider installing from the RPMs instead of compiling from source.