[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] compile failure with recent versions



Vasil Dimov wrote:

Hi all,

I am trying to port the latest version of XaraLX (834) to FreeBSD and
I'm getting a weird C++ warning and an error about undeclared macros:

snip

LocalEnvironment::GetNumberOfDecimalPlaces(UINT32*)':
localenv.cpp:150: error: `FRAC_DIGITS' undeclared (first use this function)
localenv.cpp:150: error: (Each undeclared identifier is reported only once for each function it appears in.)
localenv.cpp:150: error: `nl_langinfo' undeclared (first use this function)
localenv.cpp: In static member function `static void LocalEnvironment::GetThousandsSeparator(StringBase*)':
localenv.cpp:187: error: `THOUSANDS_SEP' undeclared (first use this function)
localenv.cpp:187: error: `nl_langinfo' undeclared (first use this function)
localenv.cpp: In static member function `static void LocalEnvironment::GetDecimalPointChar(StringBase*)':
localenv.cpp:221: error: `DECIMAL_POINT' undeclared (first use this function)
localenv.cpp:221: error: `nl_langinfo' undeclared (first use this function)
gmake[2]: *** [localenv.o] Error 1
gmake[2]: Leaving directory `/tmp/xaralx-devel/work/XaraLX-0.4r834/wxOil'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/tmp/xaralx-devel/work/XaraLX-0.4r834/wxOil'
gmake: *** [all-recursive] Error 1
*** Error code 2

I just want to ask on this list, before investigating the problem
myself.

Any ideas?
Vasil,

Looks like some code I added last week to get the correct characters to use for thousand separators and decimal points. Can you try #including <langinfo.h> at the top of localenv.cpp? BSD _should_ have an implementation (and googling "nl_langinfo BSD" finds some man-pages).

Thanks,
   Luke