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


On Thu, 2013-02-28 at 01:06 +0530, Prashant Pandey wrote:
Hello everyone,

I am having a hard time debugging the undefined reference to
<some_function> error. I made following changes:
http://pastebin.com/DqqTsP7A. Errors are:
http://pastebin.com/PW0yzzgA.

Try and send your patches, even ones that are works in progress, as
attachments, rather than pastebin

Anyway... I can't see how you got as far as the linker failure, you
should have gotten a compiler error of "no matching function for call to
String::GetToken(... sal_Int32&)"
which is the problem. You've changed various stuff like..

- xub_StrLen nIndex = 0;
+ sal_Int32 nIndex = 0;
  aFont.SetName( aSearch.GetToken( 0, ';', nIndex ) );

but String::GetToken takes a reference to a 16bit xub_StrLen not a 32bit
sal_Int32. You have to either leaves those inputs to String::GetToken
alone or chage the String to a OUString and use OUString::getToken which
does take a sal_Int32.

I suggest just trying to convert a small piece first rather than making
a mega-patch.

C.


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.