Skip to content
New issue

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

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

Already on GitHub? # to your account

Visual Studio Syntax Error When Building Solution #142

Open
DJHotLettuce opened this issue Jul 21, 2022 · 4 comments
Open

Visual Studio Syntax Error When Building Solution #142

DJHotLettuce opened this issue Jul 21, 2022 · 4 comments

Comments

@DJHotLettuce
Copy link
Contributor

I'm getting this error 766 times on Visual Studio 2019 when building the generated .sln file:
Error C2760 syntax error: unexpected token 'identifier', expected 'type specifier' plugin_sa C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include\objbase.h 239

The line in question: static_cast<IUnknown*>(*pp); // make sure everyone derives from IUnknown

Full section
extern "C++" { template<typename T> void** IID_PPV_ARGS_Helper(T** pp) { static_cast<IUnknown*>(*pp); // make sure everyone derives from IUnknown return reinterpret_cast<void**>(pp); } }

Is there a setting I'm missing here?
Thanks

@DJHotLettuce
Copy link
Contributor Author

I was able to fix this by not using Windows XP support. Apparently this is a bug in the SDK
https://developercommunity.visualstudio.com/t/error-c2760-syntax-error-unexpected-token-identifi/1250023

@asyth
Copy link

asyth commented Aug 6, 2022

i'm having the same issue but if i don t use the windows xp support i get : The build tools for x141_xp cannot be found

@shpeenut22
Copy link

shpeenut22 commented Nov 5, 2023

i have this problem too, but it happens in assembly.hpp, in 155 line. Compiler complains on "<" symbol in the line

static std::unique_ptr<FuncT> static_func;

@shpeenut22
Copy link

i have this problem too, but it happens in assembly.hpp, in 155 line. Compiler complains on "<" symbol in the line

static std::unique_ptr<FuncT> static_func;

i created issue too #169

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

No branches or pull requests

3 participants