473,395 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 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
Jul 19 '05 #1
2 2973
"nitin" <ni***********@yahoo.com> wrote...
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
Jul 19 '05 #2

"nitin" <ni***********@yahoo.com> wrote in message news:db*************************@posting.google.co m...
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.
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Sonny | last post by:
I need to port a library that is written entirely in C to C++. The library is supported on quite a few platforms (windows, Solaris, Linux, AIX, HP-UX, OSX, etc...) and there's quite an existing...
2
by: Ryan Liu | last post by:
Hi, You know there is no getpassphrase in Linux platform. Now I want to rewrite this function in Linux. But I don't how to not display my input char from screen. Would you like to give me some...
0
by: Ganesh Tiwari | last post by:
i want to write a program, which works much like ldd command, which goes throgh c/c++ binary on solaris/SPARC and check whether it is possible to port it on to linux/intel. How do i do this? what...
1
by: Lionel van den Berg | last post by:
Hi all, I'm having a problem porting from qt2.x to qt3.x. I have posted on a qt forum but no joy as yet so I thought that maybe someone here could shed some more light on what the compiler is...
2
by: Steph L | last post by:
Hi, A given Milter program compiles ok on OpenBSD/FreeBSD/Linux but not on Solaris : it uses daemon(3) http://www.openbsd.org/cgi-bin/man.cgi?query=daemon&apropos=0&sektion...
13
by: Mary Lei | last post by:
Does anyone know the link to obtain the tarball for db2 8.1 for solaris running on AMD 64 bit ? This is the entire db2 installation on a new system that does not have db2. Thanks.
5
by: shobhah | last post by:
Hi, We have a complete succsssfully working product on 32bit sparc solaris machine for which compiler used is CC 5.8 Now we are migarting our product from 32 bit to 64bit sparc solaris machine....
1
by: jpw | last post by:
I am writing a Python / C++ embed app and it need to work on 3 platforms I have the PYTHONPATH variable set correctly and have gone back and downloaded compiled and installed the latest Python...
1
by: Steven Backus | last post by:
I inherited a Solaris c++ program that uses Rogue Wave and am trying to port it to linux. It seg faults in this code: for (int size = entries() - 1; size 1; --size) { RWOrderedIterator...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.