arun11299 / cpp-jwt

JSON Web Token library for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visual Studio will not find "jwt/jwt.hpp"

Ruuddenbekker opened this issue · comments

I'm using VisualStudio 2019 Communitiy edition and I am trying to use cpp-jwt.

I've tried building using the Visual studio cmake handling.
Building returns no errors, but when trying to create my own application
(console app) with a cpp file with:

#include
#include "jwt/jwt.hpp"

int main() {
return 0;
}

returns an error that jwt/jwt.hpp can not be found.
Adding include libraries does not solve the problem.

What can be the cause?

I've also tried building it using (from a command prompt):
cd cpp-jwt
mkdir build
cd build
cmake ..
This needed admin rights to install everything in: C:/Program Files(x86)/cpp-jwt/lib/cmake/cpp-jwt

with identical results.

Do I need to add a refereence to the cmake project somehow in VisualStudio?
If so, How can I do that?

Can you figure out the compiler command that is being executed. Will get more idea on why it is not able to find the header file.

Do you have tips which build output verbosity setting is the best and what to look for?
what is the directory for Include files option to look for?
I get a ton of lines....

There seems to be a VS issue.
When I added the search path to 'allconfigurations' it was being found!

Glad you were able to resolve it. I am not well versed with windows dev environment. Feel free to update readme with installation instructions if you would like to.

Is there a way to create add the payload using e.g. a string parameter?

Can you show an example of what you are trying to do ?