Skip to content

Including mongoose.h in a Windows C++ project breaks other includes and has many conflicts with winsock #2985

Discussion options

You must be logged in to vote

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:

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN

so if that means anything to you, then your whatever n…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@scaprile
Comment options

@ThomasR95
Comment options

@ThomasR95
Comment options

@scaprile
Comment options

scaprile Jan 1, 2025
Collaborator

Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants