Compatibility 2.95.2 -> 3.0.2

Hultman, Sten sten.hultman@cgey.com
Tue Jan 15 08:16:00 GMT 2002



Hi !

I am currently trying to port an application from HP-UX10.20 and gcc2.95.2
to HP-UX11.00 using gcc3.0.2.

As you can se in my enclosed listing a come across a large number of
compatibility problems. 

I suppose this could be cured by including the correct combination of
include files ?  Is there possibly any "compatibility flags" that have
to be set ? I have studied the documentation as well as all entries in
this forum without finding  the answer.
I would very much appreciate any hint about where to find the solution.
I can't be alone with these problems.

Regards
Sten Hultman



Compiling scheduler.cc
if [ ! -d objs ] ; then mkdir objs ; fi
/usr/local/bin/g++ -B /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.2/
 -g -mgas -fPIC -fno-implicit-templates -Wall 
-I/usr/local/include/g++-v3 
-I/usr/local/include/g++-v3/backward 
-I/home/shultman/VIP/project//src/daedal/libj/include 
-I/home/shultman/VIP/project//src/daedal//socket++1.11 
-I/home/shultman/VIP/project//src/daedal/include 
-I/opt/subadm/include 
-DJNOTHREADS 
-D_CPP_BACKWARD_IOSTREAM_H '
-DJVERSION="0.99"' '
-DJBUILD="3"' 
-o objs/scheduler.o -c scheduler.cc

In file included from
/home/shultman/VIP/project/src/daedal/socket++1.11/sockinet.h:14,
                 from scheduler.h:6,
                 from scheduler.cc:9:
/home/shultman/VIP/project/src/daedal/socket++1.11/sockstream.h:266: parse 
   error before `.' token
/home/shultman/VIP/project/src/daedal/socket++1.11/sockstream.h: In
constructor 
   `isockstream::isockstream()':
/home/shultman/VIP/project/src/daedal/socket++1.11/sockstream.h:260: no 
   matching function for call to `std::basic_istream<char, 
   std::char_traits<char> >::basic_istream()'
/usr/local/include/g++-v3/bits/std_istream.h:209: candidates are: 
   std::basic_istream<_CharT, _Traits>::basic_istream(const 
   std::basic_istream<_CharT, _Traits>&) [with _CharT = char, _Traits = 
   std::char_traits<char>]
/usr/local/include/g++-v3/bits/std_istream.h:72:                 
   std::basic_istream<_CharT, 
   _Traits>::basic_istream(std::basic_streambuf<_CharT, _Traits>*) [with
_CharT 
   = char, _Traits = std::char_traits<char>]

****************************************************************************
**********

The first error (line 266) referes to the following class declaration:

class isockstream: public istream {
protected:
                        isockstream (): ios (0) {}
public:
                        isockstream(sockbuf* sb): ios (sb) {}
  virtual               ~isockstream () {}
		        
  sockbuf*		rdbuf () { return (sockbuf*)ios::rdbuf(); }
  sockbuf*		operbasic_ios.hator -> () { return rdbuf(); }
};


This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.



More information about the Gcc-help mailing list