In short, you have a problem compiling (this is a compiler not linker error) a 3rd-party library using Windows API code with MingW. Nothing to do with Qt.
The std::map has std::string keys and pNameTarget (LPTSTR) is is not std::string or something implicitly convertible. This may be a UNICODE/non-UNICODE issue, especially in light of the comments a few lines earlier in the source file.
Bookmarks