-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Compiling error VS2017 #902
Comments
The problem is due to the likelyhood your including Windows.h elsewhere in your game engine. One of the headers it uses defines macros for min and max. There are two solutions. The first is to either define NOMINMAX before each include windows.h, or to define it solution-wide ie in your preprocessor definitions. That can lead to trouble though if any libraries you may add depend on the windows.h definitions of min/max. The second solution, and probably the easiest is just to change the affected line of code ( pattern_formatter.h line 1117) to
The additional brackets won't affect the code and they'll defeat the macro re-definition. |
Thanks! |
@RedshirtMB and @JaNurz Thanks for spotting the problem. |
…dd more sdk docs (gabime#902)
Hi! I have just added spdlog to my project and I got those errors:
I just added include directory to
Additional include directory
since cmake have not generated any .lib/dll files.when I include "spdlog/spdlog.h", those errors show.
Example code included to this library runs fine.
How to fix it?
The text was updated successfully, but these errors were encountered: