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


From: Tim Mooney
Subject: Re: DDD-3.3.9-test1 is released
Date: Thu, 29 Apr 2004 14:30:55 -0500 (CDT)

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




reply via email to

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