GithubHelp home page GithubHelp logo

Comments (6)

zodiacon avatar zodiacon commented on September 27, 2024

I don't get any issues. Do you have the C++ workload properly installed, along with the Windows SDK?

from totalregistry.

steenstra avatar steenstra commented on September 27, 2024

I've installed 'Desktop development with C++', but not Universal Windows Platform Development, is that the one you mean with Windows SDK?

from totalregistry.

zodiacon avatar zodiacon commented on September 27, 2024

No. UWP is not required (although doesn't hurt). I can't tell what the issue is, but you could try installing the SDK by searching for "Windows 10 SDK Download" and installing that.

from totalregistry.

steenstra avatar steenstra commented on September 27, 2024

The Windows SDK was already installed multiple times (different versions), apparently, but I removed them all and installed only the latest. When I try to build the solution, it fails in the same way.

In the console, there's this warning, it doesn't seem to be relevant, but just to be sure:

Build started...
1>------ Build started: Project: WTLHelper, Configuration: Debug x64 ------
1>cl : command line warning D9002: ignoring unknown option '/std:c++20'

from totalregistry.

zodiacon avatar zodiacon commented on September 27, 2024

Ah, it may be relevant. Change the project properties compiler settings to use C++17 or C++(latest)

from totalregistry.

steenstra avatar steenstra commented on September 27, 2024

Changing it to C++17 almost works:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Error	C7582	'Key': default member initializers for bit-fields requires at least '/std:c++latest'	RegExp	C:\path\to\repo\RegExp\RegExp\Registry.h	14	
Warning		The 'packages' element is not declared.	WTLHelper	C:\path\to\repo\RegExp\WTLHelper\packages.config	2	

When I changed it to 'Preview - Features from the Latest C++ Working Draft (/std:c++latest)', I got no errors!

========== Build All: 2 succeeded, 0 failed, 0 skipped ==========

Thanks for your help!

from totalregistry.

Related Issues (20)

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.