[Stk] RtMidi in Qt
Ge Wang
gewang@CS.Princeton.EDU
Tue, 11 Oct 2005 10:02:57 -0400 (EDT)
Hi,
It looks like the problem may be that RtMidi is constructing a STL
string with a unicode string, since you have -DUNICODE enabled.
> g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE
> ...
error in RtMidi.cpp:
> rtmidi.cpp:1799: error: no matching function for call to
(some STL gunk output removed)
> ::basic_string(WCHAR[32])'
I don't think string has an overloaded constructor for wide chars (by
default), causing the compilation error.
Is unicode support crucial, or does Qt require it? If not, try removing
-DUNICODE from your makefile, make clean, and compile again?
Best,
Ge!