-
Notifications
You must be signed in to change notification settings - Fork 112
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
Comments
Do I need to add a refereence to the cmake project somehow in VisualStudio? |
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? |
There seems to be a VS issue. |
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. |
I will do that somewhere in the upcoming weeks.
Is there a way to create add the payload using e.g. a string parameter?
I need to encode a jsonstring somehow.
Best regards,
Ruud
Van: Arun Muralidharan ***@***.***>
Verzonden: donderdag 14 oktober 2021 09:18
Aan: arun11299/cpp-jwt ***@***.***>
CC: Bekker,Ruud T.J.A.M. den ***@***.***>; State change ***@***.***>
Onderwerp: Re: [arun11299/cpp-jwt] Visual Studio will not find "jwt/jwt.hpp" (#84)
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.
-
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farun11299%2Fcpp-jwt%2Fissues%2F84%23issuecomment-943081413&data=04%7C01%7Cr.denbekker%40fontys.nl%7Cbaaca55732144861eab208d98ee2bc91%7Cc66b6765b7944a2b84ed845b341c086a%7C0%7C0%7C637697926746289398%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=6xamV%2FA6y5%2FV%2BE5vCSD5Yh03RAQzpcn8Si49ZJEHU6Q%3D&reserved=0>, or unsubscribe<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAV5VUCEENJSN5K62URJXEQTUGZ7Z5ANCNFSM5FVB7CTQ&data=04%7C01%7Cr.denbekker%40fontys.nl%7Cbaaca55732144861eab208d98ee2bc91%7Cc66b6765b7944a2b84ed845b341c086a%7C0%7C0%7C637697926746299393%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=m8LZqIZzwG3ptk%2BJEbagn8F8LJl6MbEJFd9UZWg499w%3D&reserved=0>.
Triage notifications on the go with GitHub Mobile for iOS<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cr.denbekker%40fontys.nl%7Cbaaca55732144861eab208d98ee2bc91%7Cc66b6765b7944a2b84ed845b341c086a%7C0%7C0%7C637697926746299393%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ZYDuyTkIeeUL1GxGl7DgkDClO43d6k1bcovte0pV%2B4Q%3D&reserved=0> or Android<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cr.denbekker%40fontys.nl%7Cbaaca55732144861eab208d98ee2bc91%7Cc66b6765b7944a2b84ed845b341c086a%7C0%7C0%7C637697926746309388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2KWBczIKsLoc7y2iEQsCMZIEEdNCVBkzEeeXtFfuPk0%3D&reserved=0>.
======================================================================================================================================== E-maildisclaimer: Aan dit bericht, waaronder ook de eventuele bijlagen worden bedoeld, kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde en bevat persoonlijke en vertrouwelijke informatie. Het bekend maken, kopieren en verspreiden van een bericht dat niet voor u bestemd is, is niet toegestaan. Als u dit bericht per ongeluk heeft ontvangen, verzoeken wij u vriendelijk het direct te vernietigen en de afzender te informeren. Twijfelt u over de juistheid of volledigheid van dit bericht? Neem dan contact op met de afzender. ======================================================================================================================================== This message and any associated attachments cannot be deemed as legally binding under any circumstances. This message is intended for the exclusive use of the person(s) mentioned as recipient(s) and contains personal and confidential information. Directly or indirectly copying, disclosing, distributing, printing, publicising and/or in any way using this message or any part thereof by any means is strictly prohibited if you are not the intended recipient(s). If you have received this message in error, please notify the sender and delete this message from your system immediately. If you are in doubt regarding the correctness and/or completeness of this message, please contact the sender.
|
Can you show an example of what you are trying to do ? |
I found a solution that works for me.
I'm using this construction now (strdata is the json string):
jwt::jwt_object obj{ algorithm("HS256"), payload({ {"payload", strdata }}), secret(key)};
This will add "payload" to the encoded string, but that's no issue.
Regards,
Ruud
Van: Arun Muralidharan ***@***.***>
Verzonden: zaterdag 16 oktober 2021 16:56
Aan: arun11299/cpp-jwt ***@***.***>
CC: Bekker,Ruud T.J.A.M. den ***@***.***>; State change ***@***.***>
Onderwerp: Re: [arun11299/cpp-jwt] Visual Studio will not find "jwt/jwt.hpp" (#84)
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 ?
-
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farun11299%2Fcpp-jwt%2Fissues%2F84%23issuecomment-944927460&data=04%7C01%7Cr.denbekker%40fontys.nl%7C1bb63d506bc54c7ec3da08d990b5154f%7Cc66b6765b7944a2b84ed845b341c086a%7C0%7C0%7C637699929688880129%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3wP%2B3n3JT6O%2FCnySjhjpxVx3PanaACdJko7kuxzRfPs%3D&reserved=0>, or unsubscribe<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAV5VUCAHPJKRA535P4V7Z2LUHGHALANCNFSM5FVB7CTQ&data=04%7C01%7Cr.denbekker%40fontys.nl%7C1bb63d506bc54c7ec3da08d990b5154f%7Cc66b6765b7944a2b84ed845b341c086a%7C0%7C0%7C637699929688880129%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=mjq%2BfMjfLhPRfwOr6NvzcuDUwIChIbwTDV89MDTySvw%3D&reserved=0>.
Triage notifications on the go with GitHub Mobile for iOS<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cr.denbekker%40fontys.nl%7C1bb63d506bc54c7ec3da08d990b5154f%7Cc66b6765b7944a2b84ed845b341c086a%7C0%7C0%7C637699929688890123%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=EfbktT4A96PZf4lNnrutibjYTYIm1fRtiWoFIavinq8%3D&reserved=0> or Android<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cr.denbekker%40fontys.nl%7C1bb63d506bc54c7ec3da08d990b5154f%7Cc66b6765b7944a2b84ed845b341c086a%7C0%7C0%7C637699929688900116%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=IKwHjnjs8v1zqHkayCh3KOaVeRyZdX0Q6fwxaAYExtg%3D&reserved=0>.
======================================================================================================================================== E-maildisclaimer: Aan dit bericht, waaronder ook de eventuele bijlagen worden bedoeld, kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde en bevat persoonlijke en vertrouwelijke informatie. Het bekend maken, kopieren en verspreiden van een bericht dat niet voor u bestemd is, is niet toegestaan. Als u dit bericht per ongeluk heeft ontvangen, verzoeken wij u vriendelijk het direct te vernietigen en de afzender te informeren. Twijfelt u over de juistheid of volledigheid van dit bericht? Neem dan contact op met de afzender. ======================================================================================================================================== This message and any associated attachments cannot be deemed as legally binding under any circumstances. This message is intended for the exclusive use of the person(s) mentioned as recipient(s) and contains personal and confidential information. Directly or indirectly copying, disclosing, distributing, printing, publicising and/or in any way using this message or any part thereof by any means is strictly prohibited if you are not the intended recipient(s). If you have received this message in error, please notify the sender and delete this message from your system immediately. If you are in doubt regarding the correctness and/or completeness of this message, please contact the sender.
|
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.
The text was updated successfully, but these errors were encountered: