Azure / azure-storage-cpp

Microsoft Azure Storage Client Library for C++
http://azure.github.io/azure-storage-cpp
Apache License 2.0
131 stars 147 forks source link

Linking issue - Undefined reference while accessing azure storage with C++ #422

Open KaavyaShreeSK opened 8 months ago

KaavyaShreeSK commented 8 months ago

Hi team,

Facing challenges in accessing the azure blob storage using SDK in C++. Followed all procedures as mentioned in the documentation, yet having issues while linking the libraries. I've installed the libraries using Vcpkg. Have linked the following libraries in the cmakeList.txt,

azure-storage-common

azure-storage-blobs

azure-core

Even after linking the libraries, getting undefined reference to the functions of azure storage.

undefined reference to `Azure::Storage::Blobs::BlobServiceClient::CreateFromConnectionString(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, Azure::Storage::Blobs::BlobClientOptions const&)'

I request to kindly guide me on resolving the error and let me know if this is due to any mistakes while library linking and installation.

Thanks

Regards