Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop.h failes to compile in debug mode #1832

Closed
hb27 opened this issue Jan 14, 2025 · 0 comments
Closed

Loop.h failes to compile in debug mode #1832

hb27 opened this issue Jan 14, 2025 · 0 comments

Comments

@hb27
Copy link

hb27 commented Jan 14, 2025

Hi,

Operating System: Windows 11
IDE: visual studio 2022
Version: 20.71.0
Settings:
C++ 17, Vcpkg package manager with Dynamic CRT linkage.

I have uWebSockets 20.71.0 installed in visual studio 2022 C++ 17 project via vcpkg package manager.
When I compile the project in Release Mode everything went ok.
On Debug Mode, I a, getting a number of syntax errors ',' with C2059.
On Investigation it appears that the compiler may be confusing uWS::Loop::free() function with #define free(p).
This is only enabled if _CRTDBG_MAP_ALLOC is defined as in my project.
Renaming the uWS::Loop::free() function might fix the problem.

Thank you

@hb27 hb27 closed this as completed Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant