[uClibc]uclibc for arm
Floyd Brown
flobro at softsmiths.org
Thu Dec 5 17:59:38 UTC 2002
I am having a problem with uclibc gcc 2.95 (from the latest toolchain
build) involving STLPort. It involves
ifstream::getline(buffer,1024,'\n') only reading one byte, then
returning (the first line of the file has about 15 chars before the
newline).
I am wondering if anyone is anyone else is using this function under
ARM/uclibc with success?
I am also having trouble testing the same code under the i386-uclibc
build, the cout crashes immediately. But I have determined that x86
version only reads 1 character before returning.
Floyd Brown
SoftSmiths Inc.
test code ---
int main()
{
char buffer[1024];
int count = 0;
//cout << "hello\n";
//cout.flush();
ifstream infile("test.txt");
infile.getline(buffer,1024,'\n');
count = infile.gcount();
cout << infile.gcount();
}
test.txt has:
testing123
line2
line3
More information about the uClibc
mailing list