From a7fe03bd1f8938262e1f4b73b7a6f9ea971a684e Mon Sep 17 00:00:00 2001 From: Dominik Thalhammer Date: Wed, 26 Sep 2018 13:41:48 +0200 Subject: [PATCH] Update README.md Added note about known issues. --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c68dd7f..d29af8e 100644 --- a/README.md +++ b/README.md @@ -49,4 +49,15 @@ In order to use jwt-cpp you need the following tools. In order to build the test cases you also need * gtest installed in linker path -* pthread \ No newline at end of file +* pthread + +## Troubleshooting +#### Missing _HMAC amd _EVP_sha256 symbols on Mac +There seems to exists a problem with the included openssl library of MacOS. Make sure you link to one provided by brew. +See [here](https://github.com/Thalhammer/jwt-cpp/issues/6) for more details. +#### Building on windows fails with syntax errors +The header "Windows.h", which is often included in windowsprojects, defines macros for MIN and MAX which screw up std::numeric_limits. +See [here](https://github.com/Thalhammer/jwt-cpp/issues/5) for more details. To fix this do one of the following things: +* define NOMINMAX, which suppresses this behaviour +* include this library before you include windows.h +* place ```#undef max``` and ```#undef min``` before you include this library