01-23-04 10:21 PM
In article <31fe3fb2.0401050250.5deb550f@posting.google.com>, Anoop Kumar wrote:quote:
> Hi
>
> I have RH Linux 9.0 installed on my x86 computer.
> The GCC version is 3.3.2 and the gdb version is 6.0.
>
> I am porting an application from solaris to linux.
> The solaris application makes use of such a statement :
>
> ofstream (fd ); where fd is a file descriptor.
>
> This somehow seems to be working in solaris. But when i compile
> the program in linux , it gives the following error.
>
> initializing argument 1 of `std::basic_ofstream<_CharT,
> _Traits>::basic_ofstream(const char*, std::_Ios_Openmode) [with _CharT
=
> char, _Traits = std::char_traits<char>]'
>
> 1) Is there a work around to this problem???
> If so, please do let me know.
iirc ostream can take a streambuf ,and you should be able to make a strambuf
based on a file descriptor.
--
Vennlig hilsen/Best Regards
Nils Olav Selåsdal <NOS at Utel.no>
System Engineer
UtelSystems a/s
[ Post a follow-up to this message ]
|