Comments (3)
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://kennykerr.ca/2018/08/15/compilers-and-conformance/
from windows-appsample-photo-editor.
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.
Hey @JoshuaPartlow , Thanks for the help! Deleting "/permissive-" from "additional options" solved the build error.
from windows-appsample-photo-editor.
Related Issues (11)
- Use winrt::single_threaded_observable_vector(std::vector<IInspectable>) instead of winrt::make<observable_vector<IInspectable>>() HOT 2
- Broken documentation links
- Broken Link
- This repo is missing important files HOT 1
- A fine sample
- Win2D version conflict? HOT 2
- GetImageThumbnailAsync null reference exception HOT 1
- compile problem HOT 1
- A change in .idl does not show in its corresponding .h .cpp HOT 2
- winrt::from_abi was declared deprecated on version 10.0.17763.0 (Windows 10, version 1809) and above
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-appsample-photo-editor.