help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating a stream from file descriptor


From: Jun
Subject: Creating a stream from file descriptor
Date: Thu, 27 Dec 2007 14:06:57 -0800 (PST)
User-agent: G2/1.0

I posted the below message in the gcc.help in case someone in that
group can help.

Back in gcc 2.x one can create a stream using a file descriptor.  For
example

     fstream *pstr = new fstream (filedesc);

But in the newer gcc 3.x, this does not work anymore and gets an error
since the new fstream does not accept a file descriptor in the
constructor.  Does anyone know if the gcc or the library it's using
needs some special flags to get over this error?  Thanks for any input
that could help.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]