[英]syntax error: 'constant' for a windows sdk file
I'm getting this weird error when compiling a project:编译项目时出现这个奇怪的错误:
.
.
But urlmon.h is a windows sdk, why is it erroring?但是urlmon.h是windows sdk,为什么会报错? when I click it, it brings me here:
当我单击它时,它会将我带到这里:
which is very odd这很奇怪
Path of urlmon.h: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include
Urlmon Code: https://pastebin.com/ardbRFBp urlmon.h 路径:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include
Urlmon 代码: https://pastebin.com/ardbRFBp
A couple years old now, but I wanted to record what my conflict was when I ran into this exact error.现在已经几岁了,但我想记录一下当我遇到这个确切错误时我的冲突是什么。
PARSE_ANCHOR
was conflicting with w3c-libwww/Library/src/HTParse.h
: PARSE_ANCHOR
与w3c-libwww/Library/src/HTParse.h
:
#define PARSE_ANCHOR PARSE_VIEW
I didn't see anywhere that used that definition so I commented it out and it was fine here.我没有看到任何使用该定义的地方,所以我将其注释掉,在这里很好。 No problems compiling after that.
之后编译没有问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.