ddd
[Top][All Lists]
Advanced

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

RE: DDD-3.3.9-test1 is released -IRIX 6.5/MIPSpro compiler


From: Atwood, Robert C
Subject: RE: DDD-3.3.9-test1 is released -IRIX 6.5/MIPSpro compiler
Date: Fri, 30 Apr 2004 15:59:11 +0100

To make an iterative process short, I tried gnumake -j 5 -k on the
package after changing the line indicated below. (SGI make choked on
something stupid as usual, details if requested but I don't like
debugging sgi make ! Dbugging gnu make is hard enough ... )
The remaining errors are reported below.
The first is the same as what Tim reported, the second may be fixed by
removign the const specifier, and the third by replacing: 
     int offset = int(sqrt((radius * radius) / 2));
with:
     int offset = (int)(sqrt((double)((radius * radius) / 2)));

Though it might be "even more better" to use: 
      int offset = (int)(floor((sqrt((double)((radius * radius) /
2)))));

depending on what you want out of it. ( I just seem to recall having
some trouble when simply casting the math function to int, when I used
to actually use the sgi for programming )

 ... or defining an int sqrt(int){} function somewhere. 


I am still left with the "ws undefined", I guess one must get the
implementation of this from libg++ and include it somewhere?


--Robert

CC -DHAVE_CONFIG_H -I. -I. -I.  -I./..    -DNDEBUG   -LANG:std    -c -o
strclass.o strclass.C
cc-1020 CC: ERROR File = strclass.C, Line = 1543
  The identifier "ws" is undefined.

        ws(s);
        ^

cc-1020 CC: ERROR File = strclass.C, Line = 1586
  The identifier "ws" is undefined.

        ws(s);
        ^

2 errors detected in the compilation of "strclass.C".
gnumake[2]: *** [strclass.o] Error 2
source='MakeMenu.C' object='MakeMenu.o' libtool=no \
depfile='.deps/MakeMenu.Po' tmpdepfile='.deps/MakeMenu.TPo' \
depmode=sgi /bin/sh ../depcomp \
CC -DHAVE_CONFIG_H -I. -I. -I.  -I./..    -DNDEBUG   -LANG:std    -c -o
MakeMenu.o MakeMenu.C
cc-1168 CC: ERROR File = MakeMenu.C, Line = 993
  The indicated type conversion is invalid.

      XtCallbackProc proc = STATIC_CAST(const
addHelpCallback_t*,closure)->proc;
                            ^

1 error detected in the compilation of "MakeMenu.C".
gnumake[2]: *** [MakeMenu.o] Error 2
source='LineGESI.C' object='LineGESI.o' libtool=no \
depfile='.deps/LineGESI.Po' tmpdepfile='.deps/LineGESI.TPo' \
depmode=sgi /bin/sh ../depcomp \
CC -DHAVE_CONFIG_H -I. -I. -I.  -I./..    -DNDEBUG   -LANG:std    -c -o
LineGESI.o LineGESI.C
cc-1282 CC: ERROR File = LineGESI.C, Line = 176
  More than one instance of overloaded function "sqrt" matches the
argument list.

            Function symbol function "sqrt(double)" is ambiguous by
                      inheritance.
            Function symbol function "sqrt(float)" is ambiguous by
inheritance.
            Function symbol function "sqrt(long double)" is ambiguous by
                      inheritance.
            The argument types are:  (int).
      int offset = int(sqrt((radius * radius) / 2));
                       ^

1 error detected in the compilation of "LineGESI.C".

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Tim
Mooney
Sent: 29 April 2004 20:31
To: DDD Users Mailing List
Subject: Re: DDD-3.3.9-test1 is released


In regard to: Re: DDD-3.3.9-test1 is released, Arnaud Desitter said
(at...:

>> To get it to configure on IRIX (6.5.22m) with the IRIX C and C++ 
>> compilers (7.3.1.3m), I needed to have
>>
>> -LANG:std
>>
>> in CXXFLAGS (that's probably known already).  I immediately get an 
>> error when trying to build though:
>>
>> CC -DHAVE_CONFIG_H -I. -I. -I.  -I./..  -I/local/gnu/include
-DNDEBUG
>> -O2 -LANG:std -n32 -OPT:Olimit=3000    -c -o ddd.o ddd.C
>> cc-1168 CC: ERROR File = ddd.C, Line = 5840
>>   The indicated type conversion is invalid.
>>
>>       XtCallbackProc proc = STATIC_CAST(const
>WhenReadyProc_t*,client_data)->proc;
>>                             ^
>> 1 error detected in the compilation of "ddd.C".
>
>If you use:
>       XtCallbackProc proc = 
>STATIC_CAST(WhenReadyProc_t*,client_data)->proc;
>does that fix it ?

Yes, that fixed it.

The compile proceeded for a while farther, but failed at:

CC -DHAVE_CONFIG_H -I. -I. -I.  -I./..  -I/local/gnu/include  -DNDEBUG
-O2 -LANG:std -n32 -OPT:Olimit=3000    -c -o strclass.o strclass.C
cc-1020 CC: ERROR File = strclass.C, Line = 1543
  The identifier "ws" is undefined.

        ws(s);
        ^

cc-1020 CC: ERROR File = strclass.C, Line = 1586
  The identifier "ws" is undefined.

        ws(s);
        ^

2 errors detected in the compilation of "strclass.C".







I can see that `ws' is defined in <istream>, which is included by
<iostream>:



//----------------------------------------------------------------------
// istream manipulator.

template <class _CharT, class _Traits>
basic_istream<_CharT, _Traits>&
ws(basic_istream<_CharT, _Traits>& __is)
{
  typedef typename basic_istream<_CharT, _Traits>::sentry      _Sentry;
  typedef typename basic_istream<_CharT, _Traits>::_No_Skip_WS
_No_Skip_WS;
  _Sentry __sentry(__is, _No_Skip_WS()); // Don't skip whitespace.
  if (__sentry)
    __is._M_skip_whitespace(true);
  return __is;
}




BTW, when looking at strclass.C to see what files it includes, I noted
that `limits.h' is included twice, once with a HAVE_LIMITS_H guard and
once without.  One of them could be removed.

Tim
-- 
Tim Mooney                              address@hidden
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


_______________________________________________
Ddd mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/ddd




reply via email to

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