Hi,
I’m getting:
error C1189: #error: "wxUSE_WEBREQUEST must be defined, please read comment near the top of this file."
I’ve read the indicated comment and understand that I’ve got a file mismatch between setup.h in my project and, I think, setup0.h in the wxWidgets offered by my VCPKG installation, but I don’t understand how best to resolve this – the comment isn’t exactly specific.
Can anybody provide more detailed instructions, please?
Many thanks in advance.
Tim
Just adding some more detail to my earlier post:
I compared the setup.h in my local project to the VCPKG-provided version:
C:\vcpkg\buildtrees\wxwidgets\src\v3.3.1-bda38eaf74.clean\include\wx\msw\setup.h
And found that the VCPKG version of the file completely lacks the required definition. I’ve now copied the definition into the VCPKG version of the file, but I still get the same build errors in my project.
1 – Did I modify the correct file within my VCPKG structure?
2 – If the answer to the previous question is “yes”, how do I go about rebuilding the VCPKG-provided wxWidgets, taking into account my changes?
Best wishes.
Tim
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wx-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wx-users/001801dc3cf0%245bbe5490%24133afdb0%24%40raisedbar.net.
Just adding some more detail to my earlier post:
I compared the setup.h in my local project to the VCPKG-provided version:
C:\vcpkg\buildtrees\wxwidgets\src\v3.3.1-bda38eaf74.clean\include\wx\msw\setup.h
And found that the VCPKG version of the file completely lacks the required definition. I’ve now copied the definition into the VCPKG version of the file, but I still get the same build errors in my project.
1 – Did I modify the correct file within my VCPKG structure?
2 – If the answer to the previous question is “yes”, how do I go about rebuilding the VCPKG-provided wxWidgets, taking into account my changes?
Best wishes.
Tim
From: wx-u...@googlegroups.com <wx-u...@googlegroups.com> On Behalf Of Tim Burgess
Sent: 14 October 2025 10:53
To: wx-u...@googlegroups.com
Subject: Compilation issues after updating wxWidgets via vcpkg
Hi,
I’m getting:
error C1189: #error: "wxUSE_WEBREQUEST must be defined, please read comment near the top of this file."
I’ve read the indicated comment and understand that I’ve got a file mismatch between setup.h in my project and, I think, setup0.h in the wxWidgets offered by my VCPKG installation, but I don’t understand how best to resolve this – the comment isn’t exactly specific.
Can anybody provide more detailed instructions, please?
Many thanks in advance.
Tim
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wx-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wx-users/001801dc3cf0%245bbe5490%24133afdb0%24%40raisedbar.net.--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wx-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wx-users/00ad01dc3d03%24b2f55110%2418dff330%24%40gmail.com.