When using QString::fromWCharArray(const wchar_t* , int size = - 1);
vs2005 gives the following error:
error LNK2019: unresolved external symbol "__declspec(dllimport)
public: static class QString __cdecl QString::fromWCharArray(wchar_t const *,int)"
(__imp_?fromWCharArray@
QString@@SA?AV1@PB_WH@Z
) referenced in function
"public: void __thiscall midiIO::queryMidiInDevices(void)" (?queryMidiInDevices@midiIO@@QAEXXZ)
error LNK2019: unresolved external symbol "__declspec(dllimport)
public: static class QString __cdecl QString::fromWCharArray(wchar_t const *,int)"
(__imp_?fromWCharArray@QString@@SA?AV1@PB_WH@Z) referenced in function "public:
void __thiscall midiIO::queryMidiInDevices(void)" (?queryMidiInDevices@midiIO@@QAEXXZ)
To copy to clipboard, switch view to plain text mode
To fix this, go to Project --> Properties --> Configuration Properties -->
C/C++ --> Language, and set 'Treat wchar_t as Built-in Type' to No.
Hope it helps someone, it fixed my day...
Bookmarks