title: Azure Storage CPP & VCPKG
body: <p>Have a small C++ app to test some Azure Blob Storage features with in Visual Studio 2019.
  Have followed the instructions <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-c-plus-plus-how-to-use-blobs" rel="nofollow noreferrer">here</a> to install azure-storage-cpp sdk using vcpkg but when I try to run the app I get the following linker error:</p>
  
  <blockquote>
    <p>AzureConsoleApp.obj : error LNK2019: unresolved external symbol
    "__declspec(dllimport) private: void __cdecl
    azure::storage::cloud_storage_account::initialize_default_endpoints(bool)"
    (__imp_?initialize_default_endpoints@cloud_storage_account@storage@azure@@AEAAX_N@Z)
    referenced in function "public: __cdecl
    azure::storage::cloud_storage_account::cloud_storage_account(class
    azure::storage::storage_credentials const &amp;,bool)"
    (??0cloud_storage_account@storage@azure@@QEAA@AEBVstorage_credentials@12@_N@Z)</p>
  </blockquote>
  
  <p>vcpkg reports the following as installed: </p>
  
  <blockquote>
    <p>azure-storage-cpp:x64-windows-static               7.0.0<br>
    Microsoft Azure Storage Client SDK for C++ A cli...</p>
  </blockquote>
  
  <p>I need to use the static release of azure-storage-cpp for the app hence the x64-windows-static.</p>
  
  <p>From reading the vcpkg docs it's an install and forget type of tool with the tool itself stating:</p>
  
  <blockquote>
    <p>All MSBuild C++ projects can now #include any installed libraries.
    Linking will be handled automatically. Installing new libraries will
    make them instantly available.</p>
  </blockquote>
  
  <p>What have I missed?</p>