Code Monkey home page Code Monkey logo

Comments (3)

Swifter avatar Swifter commented on May 16, 2024

This is a known issue fixed in Windows Insider versions of C++/WinRT, but for now you can apply the following workaround which worked for me.

Modify the compiler options. In Visual Studio Solution Explorer, right-click on the Project file and launch the Properties window. Expand the C/C++ branch and go to the Language node. The second entry from the top is Conformance mode. Set this to Yes (/permissive-). Then select the Command Line node. At the bottom of the window, you'll see a textbox for Additional Options. Add /Zc:twoPhase- and then press the Apply button. Rebuild the project. It should now work fine.

Below are some references for you to view regarding this issue.

https://stackoverflow.com/questions/51066729/c-winrt-part-of-windows-sdk-17134-is-not-compatible-with-visual-studio-15-8-p

https://developercommunity.visualstudio.com/content/problem/297504/all-cppwinrt-code-fails-to-build-from-abi-and-to-a.html

https://kennykerr.ca/2018/08/15/compilers-and-conformance/

from windows-appsample-photo-editor.

JoshuaPartlow avatar JoshuaPartlow commented on May 16, 2024

Hi, @techjogger thanks for checking out the sample. The issue you're hitting is a known one and is documented, with other frequent issues, in the docs here. Those docs suggest the following as a solution: Set project property C/C++ > Language > Conformance mode: No (also, if /permissive- appears in project property C/C++ > Language > Command Line under Additional Options, then delete it). Please let us know if that corrects the build error.

from windows-appsample-photo-editor.

techjogger avatar techjogger commented on May 16, 2024

Hey @JoshuaPartlow , Thanks for the help! Deleting "/permissive-" from "additional options" solved the build error.

from windows-appsample-photo-editor.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.