Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


On 08/27/2015 10:45 PM, quailman wrote:
I am trying to build LibreOffice for the first time, and am running into
difficulties.

This is my clone command: git clone
git://anongit.freedesktop.org/libreoffice/core libreoffice
This is my gcc: (Debian 4.9.3-3) 4.9.3

The autogen script  works fine with no modifications. When I actually
attempt to make it though, I keep on running into the same error, which
I could find no information on. The error is the same each time, besides
where in the source it is obviously :
*
*/In file included from
/home/quailman/code/libreoffice/lotuswordpro/source/filter/lwpheader.hxx:75:0,//
//                 from
/home/quailman/code/libreoffice/lotuswordpro/source/filter/lwpbulletstylemgr.hxx:67,//
//                 from
/home/quailman/code/libreoffice/lotuswordpro/source/filter/lwpbulletstylemgr.cxx:61://
///home/quailman/code/libreoffice/include/rtl/ustring.hxx:168:5: note:
declared here//
//     OUString(int) = delete;//
//     ^//
///home/quailman/code/libreoffice/lotuswordpro/source/filter/lwpbulletstylemgr.cxx:119:16:
error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]//
//         return "";/

Each time it is in a function which returns a OUString, but the actual
return statement is the *return "";*

If I change the return statement to *return OUString();* it seems to
work, but after running into the error in three separate files(and
having no familiarity with the code), I figure I must be missing
something bigger. Is this a familiar problem to anyone?

Just "git pull" again. Some GCC versions have trouble with such statements, and those that unfortunately made it into master recently are fixed again with 8be00a3f757618b98d2407978eec2b8526e33232 "Help GCC."

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.