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 2015 Link Error #44

Open
hdycho opened this issue May 25, 2020 · 1 comment
Open

Visual Studio 2015 Link Error #44

hdycho opened this issue May 25, 2020 · 1 comment

Comments

@hdycho
Copy link

hdycho commented May 25, 2020

hi. It succeeded in installing and succeeded in obtaining lib and include files. However, when I try to use lib in a new project file, the following error appears. plz help me

Error LNK1120 7 unresolved externals Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Debug\Project1.exe 1
Error LNK2019 unresolved external symbol _EVP_MD_size referenced in function "public: __thiscall HMACValidator::HMACValidator(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,struct evp_md_st const *,class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (??0HMACValidator@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@PBUevp_md_st@@0@Z) Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Project1\jwtd.lib(hmacvalidator.obj) 1
Error LNK2019 unresolved external symbol _EVP_sha256 referenced in function "public: __thiscall HS256Validator::HS256Validator(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (??0HS256Validator@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z) Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Project1\main.obj 1
Error LNK2019 unresolved external symbol _HMAC_CTX_free referenced in function "public: __thiscall HMacCtx::~HMacCtx(void)" (??1HMacCtx@@QAE@XZ) Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Project1\jwtd.lib(hmacvalidator.obj) 1
Error LNK2019 unresolved external symbol _HMAC_CTX_new referenced in function "public: __thiscall HMacCtx::HMacCtx(void)" (??0HMacCtx@@QAE@XZ) Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Project1\jwtd.lib(hmacvalidator.obj) 1
Error LNK2019 unresolved external symbol _HMAC_Final referenced in function "public: virtual bool __thiscall HMACValidator::Sign(unsigned char const *,unsigned int,unsigned char *,unsigned int *)const " (?Sign@HMACValidator@@UBE_NPBEIPAEPAI@Z) Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Project1\jwtd.lib(hmacvalidator.obj) 1
Error LNK2019 unresolved external symbol _HMAC_Init_ex referenced in function "public: virtual bool __thiscall HMACValidator::Sign(unsigned char const *,unsigned int,unsigned char *,unsigned int *)const " (?Sign@HMACValidator@@UBE_NPBEIPAEPAI@Z) Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Project1\jwtd.lib(hmacvalidator.obj) 1
Error LNK2019 unresolved external symbol _HMAC_Update referenced in function "public: virtual bool __thiscall HMACValidator::Sign(unsigned char const *,unsigned int,unsigned char *,unsigned int *)const " (?Sign@HMACValidator@@UBE_NPBEIPAEPAI@Z) Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Project1\jwtd.lib(hmacvalidator.obj) 1

@hdycho
Copy link
Author

hdycho commented May 27, 2020

I solved the above problem, but faced another problem.

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: static class std::tuple<class nlohmann::basic_json<class std::map,class std::vector,class std::basic_string<char,struct std::char_traits,class std::allocator >,bool,__int64,unsigned __int64,double,class std::allocator,struct nlohmann::adl_serializer>,class nlohmann::basic_json<class std::map,class std::vector,class std::basic_string<char,struct std::char_traits,class std::allocator >,bool,__int64,unsigned __int64,double,class std::allocator,struct nlohmann::adl_serializer> > __cdecl JWT::Decode(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class MessageValidator *,class ClaimValidator *)" (?Decode@JWT@@sa?AV?$tuple@V?$basic_json@Vmap@std@@vvector@2@V?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@2@_N_J_KNVallocator@2@Uadl_serializer@nlohmann@@@nlohmann@@v12@@std@@aebv?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@3@PEAVMessageValidator@@PEAVClaimValidator@@@z) referenced in function main Project1 C:\Users\adydado\Desktop\Testbuild\Project1\Project1\Source.obj 1

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

1 participant