Replies: 3 comments
-
Thanks for your interest. How you might use simdjson in Visual Studio depends very much of what you want to do...
Note: The "errors" you report are not errors. They are compiler warnings that are always disabled by default: It is fine if you like to have lots of static analysis done, but it is not useful to turn compiler warnings into an error. It is not a productive approach. If you are concerned by them, we are always happy to receive pull requests, but please do not report as errors compiler warnings that are never enabled by default. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the detailed answer. In my case I am building with Unreal Engine which has it's own predefined compilation setup. I now have disabled the warnings/error before including the header file. This is how UE apparently handles many 3rd party libraries. #if PLATFORM_WINDOWS
#include "Windows/WindowsHWrapper.h"
#include "Windows/AllowWindowsPlatformTypes.h"
#include "Windows/AllowWindowsPlatformAtomics.h"
#endif
THIRD_PARTY_INCLUDES_START
#include <simdjson.h>
THIRD_PARTY_INCLUDES_END
#if PLATFORM_WINDOWS
#include "Windows/HideWindowsPlatformAtomics.h"
#include "Windows/HideWindowsPlatformTypes.h"
#endif |
Beta Was this translation helpful? Give feedback.
-
Thanks. I looked at the warnings and it is unreasonable for us to silence them. For example, The Unreal Engine folks are being unreasonable. |
Beta Was this translation helpful? Give feedback.
-
I am trying to embed simdjson in my application using Visual Studio 2022.
I have built the library and included the singleheader file. When compiling I get the following errors:
I am sorry but I did not find any docs on how to correctly embed the library.
Is there any clarification on it?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions