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

implemented ACL but link error #13

Open
guanzhongcai opened this issue May 30, 2022 · 0 comments
Open

implemented ACL but link error #13

guanzhongcai opened this issue May 30, 2022 · 0 comments

Comments

@guanzhongcai
Copy link

guanzhongcai commented May 30, 2022

I'm trying to implement ACL :

add oatpp-consul\Client.hpp:

  oatpp::String kvGetACL(const oatpp::String& key, const oatpp::String& token) const;

add oatpp-consul\rest\Client.hpp:

  API_CALL(HTTP_GET, "v1/kv/{key}", kvGetACL, PATH(String, key), AUTHORIZATION(String, token, "Bearer"))

Actually, I reset version to tag 1.0.0.
complie & build & install normally.

C:\Program Files (x86)\oatpp-consul

However when I use it by oatpp-consul.lib, got error:

1>config_helper.obj : error LNK2001: unresolved external symbol "public: class oatpp::data::mapping::type::String __cdecl oatpp::consul::Client::kvGetACL(class oatpp::data::mapping::type::String const &,class oatpp::data::mapping::type::String const &)const " (?kvGetACL@Client@consul@oatpp@@QEBA?AVString@type@mapping@data@3@AEBV45673@0@Z)
1>..\..\..\..\..\UIH\bin\RtTpsConfigHelper.dll : fatal error LNK1120: 1 unresolved externals

platform: Windows 10
cmake version 3.19.3
Microsoft Visual Studio Enterprise 2019 Version 16.8.3

looking forward to your help, thanks!

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