I have an application in C++ that is using Qt framework and I want to cross compile it into a portable program for Windows. Since I don't have any computer or virtual box with Windows operating system (and I also don't have enough space on my disk to change that), I'm trying to use MinGW to cross compile. I've installed MinGW from the ArchLinux packages and the other required libraries from the AUR.
However, everytime I try to compile the program, it would link to api-ms-win-core-winrt-l1-1-0.dll
and api-ms-win-core-synch-l1-2-0.dll
. Windows users then complain about seeing error messages like
The procedure entry point
CreateEventW
could not be located in the dynamic link libraryapi-ms-win-core-synch-l1-2-0.dll
or error message
The program can't start because
api-ms-win-core-winrt-l1-1-0.dll
is missing from your computer
My understanding is that these are windows-internal apis and that I shouldn't be linking to them. Can someone tell my why does MinGW link to these libraries and can I tell it to stop linking to these?