Skip to content

cannot build shared library on Windows #1967

@jcar87

Description

@jcar87

On Windows with msvc (Visual Studio 2022), with BUILD_SHARED_LIBS=ON, the build fails with:

  Auto build dll exports
LINK : fatal error LNK1189: library limit of 65535 objects exceeded [C:\workspace\cci_prod_PR-29156\conan-home\p\b\ginkg9e01d3cc3e3da\b\build\core\ginkgo_core.vcxproj]

I suspect this is a known consequence of setting CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to True

But the question stands: is this a regression and is this expected to work, or should this just be a static build only?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions