arun11299 / cpp-jwt

JSON Web Token library for C++
MIT License
395 stars 111 forks source link

Compilation issue in VS2017 #12

Closed sarbjit-longia closed 6 years ago

sarbjit-longia commented 6 years ago

error C2600: 'jwt::jwt_object::jwt_object': cannot define a compiler-generated special member function (must be declared in the class first)

arun11299 commented 6 years ago

Thanks for reporting VS compilation issues. I have not been able to test it as I do not have any windows platform.

Can you give me more details about this error. I would like to know which state is giving this error.

arun11299 commented 6 years ago

Hi @sarbjit-longia I have pushed a fix for this. Can you verify the same ?

sarbjit-longia commented 6 years ago

let me check

sarbjit-longia commented 6 years ago

more issues but that one is fixed:

Severity Code Description Project File Line Suppression State Error C2664 'int EVP_DigestSignFinal(EVP_MD_CTX ,unsigned char ,size_t )': cannot convert argument 3 from 'unsigned long ' to 'size_t *' s_mmpa cpp-jwt-master\include\jwt\impl\algorithm.ipp 253

Severity Code Description Project File Line Suppression State Error C2664 'int EVP_DigestSignFinal(EVP_MD_CTX ,unsigned char ,size_t )': cannot convert argument 3 from 'unsigned long ' to 'size_t *' s_mmpa cpp-jwt-master\include\jwt\impl\algorithm.ipp 262

sarbjit-longia commented 6 years ago

i think you need to define the variable as size_t rather than unsigned long, must be easy fix

sarbjit-longia commented 6 years ago

i tried fixing that one and its fixed with that change but there are other issues that cropped up.

cpp-jwt-master\include\jwt\impl\string_view.ipp(220): error C2065: 'not': undeclared identifier

arun11299 commented 6 years ago

I have pushed the changes for the above errors. Please check. Sorry for the trouble.

sarbjit-longia commented 6 years ago

Its all fixed now, thank you for your help

arun11299 commented 6 years ago

Glad to know. Thanks for reporting. All the best.