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.. 

I think it may be a case of calling conventions mismatch. Most probably,
Qt is compiled using the stdcall convention, while os_win32.cpp is being
compiled using the cdecl convention. I say this because I see __cdecl
mentioned, while the mangled name contains @ characters.
For example, see here for a summary:
http://unixwiz.net/techtips/win32-callconv.html

-- 
Enrico

Reply via email to