ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems compiling ddd-3.3 on sparc Solaris 2.7/8 with gcc 3.0.2


From: Rainer Dörntge
Subject: Problems compiling ddd-3.3 on sparc Solaris 2.7/8 with gcc 3.0.2
Date: Tue, 4 Dec 2001 12:46:22 +0100

Hi,

I encountered two problems on sparc solaris machines running
Solaris 2.7 resp. 2.8 while trying to compile ddd-3.3 with
gcc version 3.0.2.

The first one is in strclass.C, line 1434, which reads
<------------- SNIP ------------->
    int new_state = s.rdstate();
<------------- SNAP ------------->
I changed that to
<------------- SNIP ------------->
#if defined(__GNUC__) && __GNUC__ >= 3
    std::ios::iostate new_state = s.rdstate();
#else
    int new_state = s.rdstate();
#endif
<------------- SNAP ------------->
which works.

Btw., gcc 3.0.2 generates a lot of warning in strclass.h on solaris:
<------------- SNIP ------------->
strclass.h: In function `string operator+(const string&, const
string&)':
strclass.h:1302: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const string&, const
subString&)':
strclass.h:1307: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const string&, const char*)':
strclass.h:1312: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const string&, char*)':
strclass.h:1317: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const string&, char)':
strclass.h:1322: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const subString&, const
string&)':
strclass.h:1327: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const subString&, const
subString&)':
strclass.h:1332: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const subString&, const
char*)':
strclass.h:1337: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const subString&, char*)':
strclass.h:1342: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const subString&, char)':
strclass.h:1347: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const char*, const string&)':
strclass.h:1352: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(const char*, const
subString&)':
strclass.h:1357: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(char*, const string&)':
strclass.h:1362: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(char*, const subString&)':
strclass.h:1367: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(char, const string&)':
strclass.h:1372: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string operator+(char, const subString&)':
strclass.h:1377: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string reverse(const string&)':
strclass.h:1382: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string upcase(const string&)':
strclass.h:1387: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string downcase(const string&)':
strclass.h:1392: warning: the named return value extension is
deprecated, 
   please see the documentation for details
strclass.h: In function `string capitalize(const string&)':
strclass.h:1397: warning: the named return value extension is
deprecated, 
   please see the documentation for details
<------------- SNAP ------------->

The second problem is in PannedGE.C at end of pannedGraphEditClassRec
and since I'm not familiar with libXt, I have no clue how to fix it:
<------------- SNIP ------------->
PannedGE.C: At global scope:
PannedGE.C:143: cannot convert `void (*)(...)' to `void (*)()' in 
   initialization
<------------- SNAP ------------->

Since I have not found these in PROBLEMS or BUGS, hopefully, I do not
annoy you too much :-)

Thanks,
Rainer

To err is human - to purr feline.        - Richard Byrne 

kiwilogic.com ag  |  Rainer Dörntge  |  Am Sandtorkai 77 
20457    Hamburg  |  Fon:      +49 - 40 - 82 22 13 - 403 
Germany           |  Fax:      +49 - 40 - 82 22 13 - 100 
http://www.kiwilogic.com | mailto:address@hidden 
Map http://www.stadtplandienst.de/query;ORT=hh;LL=9.984x53.5442;GR=5
WebCam
http://www.hafen-hamburg.de/webcam/center_webcam.php?wrap=1&amp;navoben=
1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]