Skip to content

Build a shared library on windows with MSVC #5

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

Open
php1ic opened this issue Jan 21, 2022 · 0 comments
Open

Build a shared library on windows with MSVC #5

php1ic opened this issue Jan 21, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@php1ic
Copy link
Owner

php1ic commented Jan 21, 2022

The cmake config currently builds a static library on windows when MSVC is used. I tried to keep it generic and OS agnostic, but ran into issues with dll and lib files when it came to linking the final test binary.

If someone needs a shared library for windows/MSVC use then I will need some help with how to set things up to build a file that can be linked.

I tried the advice given in
https://stackoverflow.com/questions/26495564/why-is-my-shared-library-not-linking-correctly-when-using-cmake
and
https://stackoverflow.com/questions/33062728/cmake-link-shared-library-on-windows
but neither worked.

@php1ic php1ic added the help wanted Extra attention is needed label Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant