Including mongoose.h in a Windows C++ project breaks other includes and has many conflicts with winsock #2985
Unanswered
ThomasR95
asked this question in
Ask questions, get answers
Replies: 1 comment 3 replies
-
TL;DR |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to add mongoose to an existing project.
Before I added mongoose, the project built without errors.
After including mongoose.h, I get many errors about redefinitions and missing declarations.
...etc.
I've followed the guide to the best of my ability. I started by simply including mongoose.h and mongoose.c in my Visual Studio project, but when this returned errors, I went to the internet for advice and found the idea of building mongoose as a separate library and linking to it, to hopefully avoid such conflicts. Unfortunately that didn't make any difference.
Here are my includes in main.cpp:
and here is websocket.h:
Please could somebody help me get this building? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions