Hi all
I used the narcissus builder to build a angstrom image for the beagle
board.
I am trying to compile some basic cpp programs for the Beagle board.
The compiler which i am using is RVCT4.0. I used the Document
"Building Linux application using RVCT and GNU tool chains" and
followed the instructions to compile my program. Basically configured
my RVCT to look for GNU libraries from the tool chain libraries.
The compilation resulted in a dynamically linked excuetable.
Now when i try excueting the cpp program in my target it is not able
to find libstdc++.so.6
It fails saying cannot find the shared object libstdc++.so.6. my /usr/
lib also does not have this shared object.
i tried installing some development packages like
i) libstdc++-dev
ii) libstdc++6
it installed the shared objects but i get a segmentation fault when i
run the c++ program
this is the c++ program i am running
#include <iostream>
#include <fstream>
using namespace std;
int main () {
ifstream infile;
infile.open ("test.txt");
if (infile.is_open())
{
while (infile.good())
cout << (char) infile.get();
infile.close();
}
else
{
cout << "Error opening file";
}
return 0;
}
using gdb found out getting a seg fault at ifstream
is this a case of GNU version mismatch ?
PS
I downloaded the readily available Angstrom tool chain from
http://www.angstrom-distribution.org/toolchains/
Thanks