Hello,

I'm trying to get Lyx 1.0.4 to compile on my HPUX 10.20 box using
the HP ANSI C++ compiler.  The INSTALL file seemed to indicate
that it was possible, but there seems to be a problem with 
matching arguments in LString.  In the very first compile line,
I get:

aCC -Aa -c -g -I. -I. -I../images  -I/usr/local/include   -DPACKAGE=\"lyx\" 
-DLOCALEDIR=\"/opt/lyx/share/locale\" ../src/main.C
Error 212: "../src/filetools.h", line 105 # Argument type 'const char *' does
    not match expected parameter type 'LString &'.
                                    lyxerr.print("FilePtr: Wrong parameter given to 
fopen.");
                                                 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
Error 440: "../src/filetools.h", line 207 # Cannot initialize 'LString &' with
    'const char *'.
                        LString const & mask = "lyx_tmp");
                                               ^^^^^^^^^  
Error 226: "../src/main.C", line 40 # No appropriate function found for call
    of 'LString::LString'. Last viable candidate was "LString::LString(LString
    &)" ["../src/LString.h", line 310]. Argument of type 'class LString' could
    not be converted to 'LString &'.
            LString lyx_localedir = getEnvPath("LYX_LOCALEDIR");
                    ^^^^^^^^^^^^^                               
gmake[1]: *** [main.o] Error 2
gmake[1]: Leaving directory `/home/jmm/Admin/Build/lyx-1.0.4/src'

It seems like it can't do the conversion between the regular
"const char *" string and the LString reference.  This seems
like a problem which would be spread throughout the code and 
a very big job to fix on a case-by-case basis.

Has anyone actually compiled this version with aCC on an HP?
Any special compiler switches to fix this?  Just perusing
the list archives, I seem to find almost no compilers used
except gcc/g++, and serious problems with IRIX and Solaris C++
compilers as well.  Does this program *only* compile on gcc?

-jmm
-- 
**********************************************************
 Jan M. Martin                  Jet Propulsion Laboratory
 [EMAIL PROTECTED]        M/S 300-235
**********************************************************

Reply via email to