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

Build with vcpkg statically? #263

Open
benjamin-swain opened this issue May 27, 2019 · 4 comments
Open

Build with vcpkg statically? #263

benjamin-swain opened this issue May 27, 2019 · 4 comments
Assignees

Comments

@benjamin-swain
Copy link

benjamin-swain commented May 27, 2019

I used
vcpkg install azure-storage-cpp azure-storage-cpp:x86-windows-static
attempting to create libs/headers which I can reference in another project. However, when I build my other project with these libs/headers, I'm still seeing errors like
unresolved external symbol "__declspec(dllimport) public: class azure::storage::cloud_file_client __thiscall azure::storage::cloud_storage_account::create_cloud_file_client(void)
which makes me think that the static libraries are not being found.

@EmmaZhu
Copy link
Member

EmmaZhu commented May 31, 2019

@opalr
I'm still trying to investigate the issue. Will get back to you later.

@EmmaZhu
Copy link
Member

EmmaZhu commented May 31, 2019

@opalr
Sorry for such late response, we never tried with static building scenario either..

To reference the static built library, you'd need to define #define _NO_WASTORAGE_API before including azure storage sdk headers. After defined this macro, you still need to add to link azure storage SDK reference static libraries like:
"xmllite.lib
bcrypt.lib
rpcrt4.lib
Crypt32.lib
Winhttp.lib"

Thanks
Emma

@arginite
Copy link

arginite commented Jan 9, 2020

Have run into the same issue and thanks for the fix.
It would be good if this had more visibility by being referenced in the readme or somewhere appropriate.

@neelam256
Copy link

@EmmaZhu and @arginite can someone please post the changes where and what to change.

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

4 participants