undefined reference error while build
Caolán McNamara
caolanm at redhat.com
Thu Feb 28 03:07:29 PST 2013
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.
More information about the LibreOffice
mailing list