Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile issues on Windows involving /permissive #71

Open
jamespicone opened this issue Jan 5, 2020 · 1 comment
Open

Compile issues on Windows involving /permissive #71

jamespicone opened this issue Jan 5, 2020 · 1 comment

Comments

@jamespicone
Copy link

jamespicone commented Jan 5, 2020

OS: Windows 7
Compiler: VS 2019 (16.3.10)
CMake: 3.15, version included with MSVC
Boost: 1.70
SDL: 2.0.10
Freetype: 2.10.0

I don't think I have the Win10 SDK installed.

I get a bunch of errors like the following when compiling:
C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h(229,21): error C2760: syntax error: unexpected token 'identifier', expected 'type specifier' (compiling source file H:\src\halley\src\engine\utils\src\support\StackWalker\StackWalker.cpp) [H:\src\halley\build\src\engine\utils\halley-utils.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\wbemdisp.h(1088,62): error C2440: 'default argument': cannot convert from 'const wchar_t [1]' to 'BSTR' (compiling source file H:\src\halley\src\engine\utils\src\os\os.cpp) [H:\src\halley\build\src\engine\utils\halley-utils.vcxproj]

This looks to be a Windows bug when /permissive- is passed to the compiler: microsoft/krabsetw#42

The BSTR stuff mostly leads me to StackOverflow answers where people don't seem to be able to spot that the compiler is complaining about a default argument; it looks like a similar issue though.

@jamespicone
Copy link
Author

Just checked, I have Win10 SDK 10.0.17763 installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant