error: strstream.h: No such file or directory
        Posted  
        
            by 
                subodh1989
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by subodh1989
        
        
        
        Published on 2012-06-22T09:02:29Z
        Indexed on 
            2012/06/22
            9:16 UTC
        
        
        Read the original article
        Hit count: 228
        
I am trying to run an old C++ code in Linux (Redhat). I am using gcc version 4.1.2.
I got the following error:
error: strstream.h: No such file or directory
/trnuser1/rmtrain/DevelopmentEnv/Generic/CoreObjects/GCVTransformationServices.cpp:41: error: âostrstreamâ was not declared in this scope
/trnuser1/rmtrain/DevelopmentEnv/Generic/CoreObjects/GCVTransformationServices.cpp:41: error: expected `;' before âstrDestXMLâ
/trnuser1/rmtrain/DevelopmentEnv/Generic/CoreObjects/GCVTransformationServices.cpp:62: error: âstrDestXMLâ was not declared in this scope
This code was running fine under Solaris with gcc version 2.95. The line pointed to by the error contains the following statement:
ostrstream strDestXML;
How do I solve this?
© Stack Overflow or respective owner