With the HP-UX 10.20 ANSI C++ compiler aCC, lyx-1.0.1 compiles and
runs fine after the following fix:



*** math_parser.C       Sat Mar  6 21:10:44 1999
--- math_parser.C.DIST  Sat Mar  6 21:29:17 1999
***************
*** 38,44 ****
        FLAG_RIGHT      = 32,      //  Next right ends the parsing process
        FLAG_END        = 64,      //  Next end ends the parsing process
        FLAG_BRACE_FONT = 128,  //  Next } closes a font
!       FLAG_BRACK_END  = 256  // Next ] ends the parsing process
  };
  
  YYSTYPE yylval;
--- 38,44 ----
        FLAG_RIGHT      = 32,      //  Next right ends the parsing process
        FLAG_END        = 64,      //  Next end ends the parsing process
        FLAG_BRACE_FONT = 128,  //  Next } closes a font
!       FLAG_BRACK_END  = 256,  // Next ] ends the parsing process
  };
  
  YYSTYPE yylval;




The compiler yields a large number of warnings about casting and
bad C++ programming style, but the warnings are relatively harmless.

A good configure script, which yields very fast code, is the following:



#!/usr/bin/sh
export LANG=C
export CC="cc -Ae"
export CFLAGS="+ESlit +ESsfc +O3 +Oaggressive +Onovectorize"
export CXX="aCC"
export CXXFLAGS="+ESsfc +O3 +Oaggressive"
./configure --prefix=/opt/lyx \
            --with-extra-lib=/opt/xforms/lib/:/opt/xpm/lib/X11 \
            --with-extra-inc=/opt/xforms/include/:/opt/xpm/include/X11




The aCC what string on the system I used for compiling is:
aCC:
        HP aC++ B3910B A.01.18
        HP aC++ B3910B A.01.12 Language Support Library


Hope the above is of some help/use for the developers and users.

Bo

-- 
  ^   Bo Thidé (Ass Prof)-------SM5DFW-------http://www.wavegroup.irfu.se/~bt
 |I|  Space and Plasma Physics, S-75591 Uppsala, Sweden. Office: Villavägen 3
 |R|  Office Phone: [+46] (0)18-4717269        Office Fax: [+46] (0)18-554917 
/|F|\ Wireless/Cellular Phone: 0705-613670        Home Phone: [+46] 18-554184
~~U~~ E-Mail: mailto:[EMAIL PROTECTED]  Wireless e-mail: mailto:[EMAIL PROTECTED]

Reply via email to