10-12-2012 09:19 AM
Hi,
I'm trying to use the bb::utility::i18n apis to format a percentage string.
I include #include<bb/utility/i18n/Formatting> in my cpp file and call the following:
QString percentageStr = bb::utility::i18n::toPercentageString(value, 4, 4);
However I get the following compile error:
/Users/proj/ndk-workspace/mm/arm/../src/Viewer.cpp
Do I have to include a specific library?
10-12-2012 12:30 PM
Yes coming from a Java background this threw me at first as well.
Having the method signatures separate from the source is stupid, as long as a method signature matches it will call that method which causes no end of confusion.
10-12-2012 05:58 PM
But what is the library I need to link to?
10-12-2012 06:03 PM
Okay I just found it.
LIBS += -lbbsystem -lbbutilityi18n