Skip to content

Build a shared library on windows with MSVC #5

Open
@php1ic

Description

@php1ic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions