PDA

View Full Version : Microsoft SDKs' headers don't work in QtCreator



Krzysiek
5th May 2009, 17:20
I am trying to add headers provided with Upek's VtApi used to verify users with their fingerprints to my Qt application, but when I am trying to build the project, QTCreator returns 6 errors listed below.


VtApiPlus.h:830: error: `_T' was not declared in this scope
VtApiPlus.h:834: error: `SHFlushSFCache' was not declared in this scope
VtApiPlus.h:835: error: `SHGFP_TYPE_CURRENT' was not declared in this scope
VtApiPlus.h:839: error: `_tcslen' was not declared in this scope
VtApiPlus.h:844: error: `_tcsncat_s' was not declared in this scope
VtApiPlus.h:846: error: `_tcsncat_s' was not declared in this scope

These functions are declared in shlobj.h and string.h headers included into VtApiPlus.h. MinGW has those header files, but they are different from Microsft SDKs' ones. Replacing MinGW's files with Microsoft SKDs' creates even more errors spotted in sholbj.h and string.h files.

Can you please tell me, what can I do to eliminate these 6 errors? I am trying to solve this problem for two days with no effect :(