syntax error: 'constant' for a windows sdk file

412 Views Asked by At

I'm getting this weird error when compiling a project:

Error Output.

But urlmon.h is a windows sdk, why is it erroring? when I click it, it brings me here:

urlmon.h

which is very odd

Path of urlmon.h: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include Urlmon Code: https://pastebin.com/ardbRFBp

1

There are 1 best solutions below

0
user1870965 On

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:
#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.