Hi, list
I try to use ITfInputProcessorProfiles COM interface with g++ 5.3.0, the latest
version mingw-w64-install.exe currently provides.
I compile the code in the attatched file by:
g++ code.cpp -lole32 -loleaut32 -lmsctf
However, I get the following linker errors:
C:\DOCUME~1\user\LOCALS~1\Temp\ccTvn2By.o:code.cpp:(.text+0x32): undefined
reference to `IID_ITfInputProcessorProfiles'
C:\DOCUME~1\user\LOCALS~1\Temp\ccTvn2By.o:code.cpp:(.text+0x49): undefined
reference to `CLSID_TF_InputProcessorProfiles'
collect2.exe: error: ld returned 1 exit status
Where can I find the two symbols? I think -lmsctf helps, but it doesn't.
I also try 6.1.1 and 7.0.0 under dongsheng-daily/ directory, and they give me
the same errors.
Please tell me how to solve this.
Thanks! Any response will be appreciated.
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <msctf.h>
#ifdef _MSC_VER
#pragma comment(lib, "Ole32.lib")
#pragma comment(lib, "OleAut32.lib")
#endif
int main(){
HRESULT hr;
ITfInputProcessorProfiles *pProfiles;
CoInitialize(NULL);
hr = CoCreateInstance(CLSID_TF_InputProcessorProfiles, NULL,
CLSCTX_INPROC_SERVER, IID_ITfInputProcessorProfiles, (LPVOID*)&pProfiles);
CoUninitialize();
return 0;
}
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public