Linking error

Richard Kimberly Heck rikiheck at lyx.org
Wed Oct 14 18:22:05 UTC 2020


On 10/14/20 12:50 PM, José Abílio Matos wrote:
>
> On Wednesday, October 14, 2020 4:37:18 PM WEST Richard Kimberly Heck 
> wrote:
>
> > I guess size_t must be unsigned long long on your machine? Can you try
>
> > adding a template declaration for convert<unsigned long long> to
>
> > support/convert.cpp?
>
> >
>
> > Riki
>
>
> It is already there:
>
>
> #ifdef HAVE_LONG_LONG_INT
>
> template<>
>
> string convert<string>(unsigned long long ull)
>
> {
>
> return lexical_cast<string>(ull);
>
> }
>
>
>
> template<>
>
> docstring convert<docstring>(unsigned long long ull)
>
> {
>
> return from_ascii(lexical_cast<string>(ull));
>
> }
>
> #endif
>
>
> The question then becomes why it isn't HAVE_LONG_LONG_INT defined?
>
It's the other way that's needed here:

template<>
unsigned long long convert<unsigned long long>(string const & s)

{

return strtoull(s);

}


I assume that will fix it.


Riki


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201014/bbe555e4/attachment.html>


More information about the lyx-devel mailing list