Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

g++: trouble with opfstream

0 views
Skip to first unread message

J.J. Merelo Guervos

unread,
Aug 2, 1994, 1:36:56 PM8/2/94
to
Hi, netfolks;
I have compiled and run this simple program using gcc 2.5.7, same
version for libg++, trying to implement pipes using C++ i/o

------------------------
#include <pfstream.h>

main() {
opfstream foo("|more", ios::out );

char bar[4][10] = {"one", "two", "three", "four"};

for ( int i = 0; i < 4; i ++ ) {
foo << bar[i] << endl;
}

}
-------------------------
And nothing but the newlines come out. I have tried also numbers, and other
programs, like "cat", and "sort", and no joy. popen does not give the same
problem; indeed, it works.

I am running gcc on a SGI, Irix 4.0.1.

Any idea?

JJ


--
JJ Merelo
Grupo Geneura ---- Univ. Granada

0 new messages