Including mongoose.h in a Windows C++ project breaks other includes and has many conflicts with winsock #2985
-
Beta Was this translation helpful? Give feedback.
Answered by
scaprile
Jan 1, 2025
Replies: 1 comment 5 replies
-
TL;DR |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a problem with includes in your environment, you have to track down your problem with your includes in your scenario. We have lots of examples that do work, and we build every day on VC for testing purposes, so unless you find there is a problem with our code, it is not.
If you read the docs, you'll see that Mongoose is told on which architecture (
MG_ARCH
) it is running, and it detects Linux, Mac and Windows.If you see the code, you'll see that your magic words are already spoken by mongoose.h:
mongoose/src/arch_win32.h
Lines 9 to 10 in 6cf36b5
so if that means anything to you, then your whatever n…