Skip to content

implemented ACL but link error #13

@guanzhongcai

Description

@guanzhongcai

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions