On 24 Mar 2000, Jean-Marc Lasgouttes wrote:
> >>>>> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes:
>
> Allan> JMarc, please try compiling at least src/frontends/xforms. It
> Allan> doesn't need xtl but does have a new scheme for the callbacks:
> Allan> friendly C functions. It works fine with gcc-2.95.2. I haven't
> Allan> bothered with macros to assist with this yet. Waiting to make
> Allan> sure it works first.
>
> With gcc 2.8.1, I do not go farther than
>
> In file included from ../../../../rae/src/support/lxtl.h:25,
> from ../../../../rae/src/PrinterParams.h:18,
> from ../../../../rae/src/frontends/xforms/FormPrint.C:14:
> /afs/rocq/home/meval/common/include/xtl/objio.h:148: warning: ANSI C++ does not
>support `long long'
> /afs/rocq/home/meval/common/include/xtl/objio.h:149: warning: ANSI C++ does not
>support `long long'
> /afs/rocq/home/meval/common/include/xtl/objio.h:289: warning: ANSI C++ does not
>support `long long'
> /afs/rocq/home/meval/common/include/xtl/objio.h:290: warning: ANSI C++ does not
>support `long long'
> /afs/rocq/home/meval/common/include/xtl/objio.h:431: Internal compiler error.
> /afs/rocq/home/meval/common/include/xtl/objio.h:431: Please submit a full bug report
>to `[EMAIL PROTECTED]'.
>
> It seems Angus said he's got the same with some egcs version.
I can't remember why XTL insists on using long long -- the documentation
is at my fingertips but I just can't seem to reach it... Just one of those
long hot Australian summer days (but wait it's supposed to autumn now! --
roll on global-warming!)
> With cxx the friendly C functions do not work (we tried that
> earlier...) because declaring a function as friend loses the C linkage
> (don't know whether it is a bug or not).
The extern "C" prototyping just before the class is ignored by cxx then.
It's annoying but I don't know if it's just a quirk of gcc or required by
the standard -- probably one of those aspects that are left to the
compiler writers.
Allan. (ARRae)