在 2018/5/6 19:00, looo...@gmail.com 写道:
Hi all,

I'm trying to compile this (https://github.com/mohabouje/WinToast) library under msys2. The problem is, the library requires Windows Runtime Library (https://msdn.microsoft.com/en-us/library/hh438466.aspx). And maybe more parts of Visual C++ Redistributable libraries. However I did not get that far in compilation
process. Just adding adding WRL to include path doesn't help.


No you needn't. mingw-w64 should already have a few (probably out-of-date) WRL headers, except 'implements.h' here.


Is any chance to make Visual C++ libraries work with MSYS2?  I found this thread (https://stackoverflow.com/questions/12909139/can-windows-store-applications-be-built-with-mingw) about MSYS2 and WRL which suggests, that WRL is not supported yet. But its from late 2013. Maybe things have
changed since.


Because 'implements.h' is not available, you have to create one yourself. MSVC headers *usually do not* compile verbatim using GCC. It will require quite a little time and energy to make a header that is both binary-compatible with the MSVC one and source-compatible with GCC.

So, feel welcome to contribute one.

--
Best regards,
LH_Mouse


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to