Qt 5.4/WinPhone/WinRT: Include C files in project
-
Hi,
When mixing C++ and C code in Windows RT and Phone projects then the "Consume Windows Runtime" flag ("/ZW") has to be disabled for the C files (not the cpp). This works fine in Visual Studio 2013 projects.
The Qt documentation for WinRT states:
Windows Store Applications (Appx) are compiled with the /ZW switch, which enables metadata and therefore doesn’t support fun stuff like external C libraries. This shouldn’t be an issue as long as Qt itself is compiled without the flag (and the apps are). [1]One obvious solution is to export the Qt project into a VS project and remove the "/ZW" flag for each C file. But is there a way to do this directly in Qt Creator?
Regards,