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

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

Closed
Ruuddenbekker opened this issue Oct 9, 2021 · 8 comments
Closed

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

Ruuddenbekker opened this issue Oct 9, 2021 · 8 comments

Comments

@Ruuddenbekker
Copy link

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.

@Ruuddenbekker
Copy link
Author

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

@arun11299
Copy link
Owner

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.

@Ruuddenbekker
Copy link
Author

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....

@Ruuddenbekker
Copy link
Author

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

@arun11299
Copy link
Owner

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.

@Ruuddenbekker
Copy link
Author

Ruuddenbekker commented Oct 15, 2021 via email

@arun11299
Copy link
Owner

arun11299 commented Oct 16, 2021

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 ?

@Ruuddenbekker
Copy link
Author

Ruuddenbekker commented Oct 17, 2021 via email

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

2 participants