Error while porting a Program from SOlaris to Linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nitin

    #1

    Error while porting a Program from SOlaris to Linux

    g++ -c $INCLUDES ActualPEResult. cpp
    In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
    from
    /home/pradeepks/Linux_Porting/dcpfrontier/dcpdev/dcp_components/trap
    i/src/Aggregate.h:17,
    from Aggregator.h:11 ,
    from Calculator.h:11 ,
    from CalculatorResul t.h:21,
    from PEResult.h:19,
    from ActualPEResult. cpp:16:
    /usr/include/c++/3.2.2/backward/backward_warnin g.h:32:2: warning:
    #warning This file inclu
    des at least one deprecated or antiquated header. Please consider
    using one of the 32 head
    ers found in section 17.4.1.2 of the C++ standard. Examples include
    substituting the <X> h
    eader for the <X.h> header for C++ includes, or <sstream> instead of
    the deprecated header
    <strstream.h> . To disable this warning use -Wno-deprecated.
    In file included from /usr/include/c++/3.2.2/iosfwd:45,
    from /usr/include/c++/3.2.2/ios:44,
    from /usr/include/c++/3.2.2/ostream:45,
    from /usr/include/c++/3.2.2/iostream:45,
    from /usr/include/c++/3.2.2/backward/iostream.h:32,
    from
    /home/pradeepks/Linux_Porting/dcpfrontier/dcpdev/dcp_components/trap
    i/src/Aggregate.h:17,
    from Aggregator.h:11 ,
    from Calculator.h:11 ,
    from CalculatorResul t.h:21,
    from PEResult.h:19,
    from ActualPEResult. cpp:16:
    /usr/include/c++/3.2.2/bits/stringfwd.h:48: parse error before `>'
    token
    /usr/include/c++/3.2.2/bits/stringfwd.h:54: parse error before `,'
    token
    /usr/include/c++/3.2.2/bits/stringfwd.h:58: `char_traits' is not a
    template
    /usr/include/c++/3.2.2/bits/stringfwd.h:60: syntax error before `;'
    token
    /usr/include/c++/3.2.2/bits/stringfwd.h:63: `char_traits' is not a
    template
    /usr/include/c++/3.2.2/bits/stringfwd.h:65: syntax error before `;'
    token
    /usr/include/c++/3.2.2/cstddef:51: confused by earlier errors, bailing
    out



    #ifndef ACTUALPERESULT_ H
    #define ACTUALPERESULT_ H

    static char sccsid_ActualPE Result_h[] = "@(#) $Id: ActualPEResult. h,v
    2.0 1999/03/31 21:17
    :03 dcpy2k Exp $";

    #ifndef CALCULATORRESUL T_H
    #include "CalculatorResu lt.h"
    #endif

    class DCActualPEResul t: public DCCalculatorRes ult
    {
    public:
    DCActualPEResul t(): DCCalculatorRes ult() {}

    virtual ~DCActualPEResu lt() { }

    // OVERLOAD PURE VIRTUAL FUNCTIONS

    // Take the results from the calculator
    // and place into the proper fields in DCResults.
    virtual void commitResults(D CResults
    &target,

    DCAggregateCont roller &c
    ontrol,

    const int
    row);


    thanks
    Nitin
  • Victor Bazarov

    #2
    Re: Error while porting a Program from SOlaris to Linux

    "nitin" <nitin_gambhir@ yahoo.com> wrote...[color=blue]
    > g++ -c $INCLUDES ActualPEResult. cpp
    > In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
    > from
    > /home/pradeepks/Linux_Porting/dcpfrontier/dcpdev/dcp_components/trap
    > i/src/Aggregate.h:17,
    > from Aggregator.h:11 ,
    > from Calculator.h:11 ,
    > from CalculatorResul t.h:21,
    > from PEResult.h:19,
    > from ActualPEResult. cpp:16:
    > /usr/include/c++/3.2.2/backward/backward_warnin g.h:32:2: warning:
    > #warning This file inclu
    > des at least one deprecated or antiquated header. Please consider
    > using one of the 32 head
    > ers found in section 17.4.1.2 of the C++ standard. Examples include
    > substituting the <X> h
    > eader for the <X.h> header for C++ includes, or <sstream> instead of
    > the deprecated header
    > <strstream.h> . To disable this warning use -Wno-deprecated.[/color]
    ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
    Are you reading what your compiler is telling you? Have you
    tried disabling that warning? Did it work?

    Besides, to do it right, find what file tries to use those
    deprecated headers and why, and then get rid of them.

    Victor


    Comment

    • Ron Natalie

      #3
      Re: Error while porting a Program from SOlaris to Linux


      "nitin" <nitin_gambhir@ yahoo.com> wrote in message news:db3db854.0 307140034.1d339 88@posting.goog le.com...[color=blue]
      > g++ -c $INCLUDES ActualPEResult. cpp
      > In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
      > from
      > /home/pradeepks/Linux_Porting/dcpfrontier/dcpdev/dcp_components/trap
      > i/src/Aggregate.h:17,[/color]

      Fix Aggregate.h and everywhere else to not use iostream.h or other prestandard
      headers (iostream not iostream.h), just as it tells you in the warning.


      Comment

      Working...