ddd
[Top][All Lists]
Advanced

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

DDD on solaris 2.9 fix


From: Frédéric SCHOENAHL
Subject: DDD on solaris 2.9 fix
Date: Wed, 23 Jun 2004 10:46:15 +0200

Hello,

I couldn't compile ddd v3.3.8 on my 
SunOS 5.9 Generic_112233-07 sun4u sparc SUNW,Ultra-5_10 Solaris
using sunfreeware GNU packages and gcc 3.4.0, it complained as follows 

------------8<---------
make
(...)
g++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem /usr/openwin/include    
-DNDEBUG -O2 -g -Wall -W -trigraphs  -c -o ddd.o `test -f 'ddd.C' || echo 
'./'`ddd.C
In file included from StringA.h:37,
                 from GDBAgent.h:53,
                 from Command.h:37,
                 from DataDisp.h:58,
                 from ddd.C:190:
VarArray.h: In member function `virtual void VarArray<T>::add(const T&)':
VarArray.h:56: error: there are no arguments to `value' that depend on a 
template parameter, so a declaration of `value' must be available
VarArray.h:56: error: (if you use `-fpermissive', G++ will accept your code, 
but allowing the use of an undeclared name is deprecated)
(...)
------------8<---------

I fixed it by changing l. 56 of ddd/ValArray.h 

        value(_size) = v;
with 
        this->value(_size) = v;

Then it compiles correctly. 

Hope this helps.

Regards,




-- 
.  Frédéric SCHOENAHL
.  Biomed. Res. Eng. + PhD Student
.  ----------------------------------
.  TEMPORARY adress (-> ~july):
.  3, rue de l'universite
.  1205 Geneva SWITZERLAND
.  ----------------------------------
.  Work [CH] (NEW): 0(041)22.37.27.257
.  Fax [CH] : 0(041)22.37.27.169
.  Home [CH]: 0(022)708.01.57 (->~july)
.  Mobile [F]: 0(033)6.18.66.38.68




reply via email to

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