Hi,
Code written in C++ got compiled successfully using Sun 4.2 Compiler on Solaris 6. As part of migration, i am using same code and trying to compile using Sun 5.8 C++ compiler(Sun Studio11) on Solaris 10 and could not compile the below line,
outStr.attach(1); // here outStr is declared as "static ofstream outStr;"
Error displayed is :
"
Error: attach is not a member of std::ofstream
"
Please suggest how to use attach with Sun 5.8 compiler.
Thanks,
Shafi