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

aws-sdk-cpp RDSClient issue #5003

Open
jaman-job opened this issue Aug 21, 2024 · 4 comments
Open

aws-sdk-cpp RDSClient issue #5003

jaman-job opened this issue Aug 21, 2024 · 4 comments
Labels

Comments

@jaman-job
Copy link

Xmake Version

2.9.4

Operating System Version and Architecture

windows 11, WSL ubuntu

Describe Bug

main.cpp file:

#include <iostream>
#include <aws/rds/RDSClient.h>

int main() {
    Aws::Client::ClientConfiguration client_config;
    client_config.region = "region";

    Aws::RDS::RDSClient rds_client(client_config);
    std::cout << rds_client.GenerateConnectAuthToken("host", "region", 1234, "username");

    return 0;
}

when i try to build i get multiple errors like this

in function `Aws::RDS::Model::ListTagsForResourceRequest::ListTagsForResourceRequest()':
ub_RDS.cpp:(.text+0x335e9): undefined reference to `Aws::AmazonWebServiceRequest::AmazonWebServiceRequest()'
in function `Aws::RDS::Model::DBProxyEndpointTargetRoleMapper::GetDBProxyEndpointTargetRoleForName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
ub_RDS.cpp:(.text+0x293f1): undefined reference to `Aws::GetEnumOverflowContainer()'

Expected Behavior

i expect it to build

Project Configuration

set_project("aws-test")

add_requires("aws-crt-cpp")
add_requires("aws-sdk-cpp", {configs={build_only="core;rds"}})

target("aws-test")
    set_kind("binary")
    add_files("src/main.cpp")
    add_packages("aws-sdk-cpp", "aws-crt-cpp")

Additional Information and Error Logs

in function `Aws::RDS::Model::ListTagsForResourceRequest::ListTagsForResourceRequest()':
ub_RDS.cpp:(.text+0x335e9): undefined reference to `Aws::AmazonWebServiceRequest::AmazonWebServiceRequest()'
in function `Aws::RDS::Model::DBProxyEndpointTargetRoleMapper::GetDBProxyEndpointTargetRoleForName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
ub_RDS.cpp:(.text+0x293f1): undefined reference to `Aws::GetEnumOverflowContainer()'
@jaman-job jaman-job added the bug label Aug 21, 2024
@waruqi waruqi transferred this issue from xmake-io/xmake Aug 21, 2024
@jaman-job
Copy link
Author

platform: linux, architecture: x86_64

@relanderolli
Copy link

我以前也遇到过同样的问题。我找到的唯一解决办法是恢复使用CMake和vcpkg。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I've had the same problem before. The only solution I found was to revert to using CMake and vcpkg.

@star-hengxing
Copy link
Contributor

I've had the same problem before. The only solution I found was to revert to using CMake and vcpkg.

You can use add_requires("vcpkg::xxx").
But for now most of the packages, when someone open an issue, I'll try to fix it when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants