On Mon, Feb 22, 2010 at 01:50:09PM +0100, Vincent van Ravesteijn - TNW wrote:
>
> >> No.
> >> The above error message states that
> >> QString::fromWCharArray(wchar_t const *,int) is the problem.
> >> I don't understand the error message but it seems that fromWCharArray
>
> >> needs to be linked via a header file.
> >
> >That header file is <QString>, which is already included. There, you
> can
> >find the declaration:
> >
> >class Q_CORE_EXPORT QString
> >{
> > ...
> > static QString fromWCharArray(const wchar_t *, int size = -1);
> > ...
> >}
> >
> >so, I really don't understand why you get the error. Are you sure you
> are
> >linking the QtCore library?
> >
>
> I see the same, and I don't know what the problem is either. The QString
> header can be found, Qstring can be used, just not this static function.
> Maybe it is not exported or something..
The function is new in 4.2, so one possibility is that you compile
against 4.2 headers but link against 4.1 libraries.
Export might be an issue, too. Checking the library with 'depends.exe'
might give a clue.
Andre'