Skip to content

link Library doesn't work on windows with sharedlibrary in build.zig #15903

@gurpreetshanky

Description

@gurpreetshanky

Zig Version

0.11.0-dev.3312+ab37ab33c

Steps to Reproduce and Observed Behavior

  1. Define a C shared library in build.zig
  2. Link the library with an exe in same build.zig
  3. see unresolved symbols

Using static library works fine.

Expected Behavior

No errors in linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-windowsMicrosoft Windows

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions