Allan, some notes on compiles on an Alpha machine. I have done nothing except
see if LyX compiles "out of the box".
With gcc-2.95.2
* code compiles fine with lyxstring but doesn't link. (I'm pretty sure now that
this bug in gcc-2.95.2 can be overcome by adding explicit "inline" statements to
all global functions that are defined in header files. Certainly, it has worked
in other code!)
* code in src/frontends/xforms compiles fine with GNU's STL string.
With DEC cxx
* code does not compile with lyxstring (due to the missing lyxstring::composite()
problem mentioned in earlier posts).
* code in src/frontends/xforms compiles fine with DEC's STL string.
To compile, I used JMarc's configure script hack, and modified it so that
the options passed to the compiler are:
EXTRA_ARGS="-D__USE_STD_IOSTREAM -O2 -ptr /tmp/lyx_cxx_repository -std ansi -nortti
-nocleanup"
Note:
* -std ansi, not -std strict_ansi. XTL dies otherwise (in the example programs
too).
* Code compiles with or without -nortti.
* The -D option is to overcome a bug in the DEC STL implementation.
As you can see therefore, I am unable to get a working version of lyx at all!
My current TO DO list:
* Get XTL's GIOP_format working currectly on an Alpha (for the sake of
completeness if nothing else.)
* See whether the XTL example codes will work with lyxstring and the two
compilers. Suspect that DEC cxx will fall over with the lyxstring::composite()
error.
* Get LyX to compile and LINK using gcc-2.95.2. (Lots of "inline"
statements, I suspect.)
Angus
Allan> > In other news I've finally written the auto_mem_buffer that I wanted and
Allan> > incorporated it into the rae branch and submitted a patch to José (XTL).
Allan> > I got rid of those yucky, smelly macros from lxtl.h and replaced them with
Allan> > fresh-as-a-spring-daisy template functions that make use of the
Allan> > auto_mem_buffer. If you should happen to look at the code in the rae
Allan> > branch you'll notice a large number of #ifdef MBs scattered through the
Allan> > code. These are temporary so that you can compare the use of mem_buffer
Allan> > and auto_mem_buffer.
Allan> Today's "rae" branch update incorporates Angus's recent work on making XTL
Allan> portable. Suitable patches have been sent to José (XTL) and this
Allan> divergence from official XTL hopefully won't last more than a week.
Allan> Angus + JMarc, I'd be interested to hear how LyX goes on Alpha machines
Allan> now.