You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another solution would be to use a fork. Because the maintainer of this repo is inactive, people forked it and took over the development. This one is our MVP: https://github.com/CrowCpp/crow
Everything you need in there, including updates, and fixes. I recommend you use his fixes, updates and work, instead of the code here, which is outdated. The work made by the group CrowCpp is fantastic!
Reacted by Farook Al-Sammarraie, Jonas Straub, homedry and faywong
Hi, CrowCpp/Crow requires you add #define CROW_MAIN to the top of your main cpp file. This is to avoid multiple definitions when using multiple source files (We're working to remove the need for it however).
Hi, CrowCpp/Crow requires you add #define CROW_MAIN to the top of your main cpp file. This is to avoid multiple definitions when using multiple source files (We're working to remove the need for it however).
Activity
bastien8060 commentedon Nov 13, 2021
Hey, you seem to be talking about file
socket_adaptors.hright?bastien8060 commentedon Nov 13, 2021
You can add a macro right after the includes:
Then implement it. Replace:
with:
bastien8060 commentedon Nov 13, 2021
Another solution would be to use a fork. Because the maintainer of this repo is inactive, people forked it and took over the development. This one is our MVP: https://github.com/CrowCpp/crow
Everything you need in there, including updates, and fixes. I recommend you use his fixes, updates and work, instead of the code here, which is outdated. The work made by the group CrowCpp is fantastic!
dsimog01 commentedon Nov 13, 2021
I am amazed. So fast and so good. The first solution you provided worked.
bastien8060 commentedon Nov 13, 2021
Ah, happy for you it worked! 👍
dsimog01 commentedon Nov 13, 2021
I get some errors with the repo you told me. Any ideas?

bastien8060 commentedon Nov 13, 2021
Hmm, currently looking into it. Indeed, I can reproduce the same error as you. Will get back, with a solution shortly.
The-EDev commentedon Nov 13, 2021
Hi, CrowCpp/Crow requires you add
#define CROW_MAINto the top of your main cpp file. This is to avoid multiple definitions when using multiple source files (We're working to remove the need for it however).dsimog01 commentedon Nov 13, 2021
It works! Thank you!
bastien8060 commentedon Nov 13, 2021
You beat me to it :). I had just found CrowCpp/Crow#150