Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.4/WinPhone/WinRT: Include C files in project
Forum Updated to NodeBB v4.3 + New Features

Qt 5.4/WinPhone/WinRT: Include C files in project

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 543 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lynic
    wrote on last edited by
    #1

    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,

    [1] http://qt-project.org/wiki/WinRT

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved