Ronald Florence wrote:

> I am trying to compile lyx-1.4.0cvs in order to port the LyX/Mac
> patches from 1.3.x.  Unfortunately, the build stops dead with
> gcc-2.95.2 (the only Apple compiler that can handle lyx-1.3.x) at:

LyX can be built with gcc-2.95.2, but not with the STL library shipped 
with gcc-2.95. You will have to install STLport's version of the STL 
to proceed with gcc-2.95. See these links for some details.

http://marc.theaimsgroup.com/?l=lyx-devel&w=2&r=1&s=stlport&q=b

> When I switch to gcc-3.3 the 1.4.0cvs build stops at:

> insetfloat.C:395: error: call of overloaded `tostr(long unsigned
> int)' is ambiguous

Add this to src/support/tostr.h:

std::string const tostr(long unsigned int);

... and this to src/support/tostr.C:

string const tostr(long unsigned int i)
{
        ostringstream os;
        os << i;
        return os.str();
}

Note to everyone else, can we please use a tostr template again?

> Gcc-2.95.2 (which can build lyx-1.3.x), and a gcc-3.1 & gcc-3.3 that
> cannot compile lyx-1.3.x, are the only compilers available on
> MacOSX. I'd welcome suggestions on getting lyx-1.4.0cvs to compile
> so I can update the various LyX/Mac patches.  Thanks.

-- 
Angus

Reply via email to