Error while porting a Program from SOlaris to Linux

N

nitin

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 CalculatorResult.h:21,
from PEResult.h:19,
from ActualPEResult.cpp:16:
/usr/include/c++/3.2.2/backward/backward_warning.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 CalculatorResult.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_ActualPEResult_h[] = "@(#) $Id: ActualPEResult.h,v
2.0 1999/03/31 21:17
:03 dcpy2k Exp $";

#ifndef CALCULATORRESULT_H
#include "CalculatorResult.h"
#endif

class DCActualPEResult: public DCCalculatorResult
{
public:
DCActualPEResult(): DCCalculatorResult() {}

virtual ~DCActualPEResult() { }

// OVERLOAD PURE VIRTUAL FUNCTIONS

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

DCAggregateController &c
ontrol,

const int
row);


thanks
Nitin
 
V

Victor Bazarov

nitin said:
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 CalculatorResult.h:21,
from PEResult.h:19,
from ActualPEResult.cpp:16:
/usr/include/c++/3.2.2/backward/backward_warning.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.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
 
R

Ron Natalie

nitin said:
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,

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top