Skip to content

Compiling programs that use libraries fails on Windows. #5134

Description

@mxruben

As of LDC 1.42, I am no longer able to compile programs that use libraries on Windows. If I try to compile any program that uses a library, I get the following error:

Error: unrecognized file extension lib
-vcolumns
Error C:\Program Files\LDC 1.42\bin\ldc2.exe failed with exit code 1.

Here is a complete, verbose log:

build_log.txt

I don't have any other D compilers installed on my system and I am using the dub executable bundled with LDC.

Reproduction

  1. Install LDC 1.42 toolchain on Windows using the multilib installer provided on the releases page.
  2. Create a new vibe.d project with dub init hello -t vibe.d (or locate any program that uses a library).
  3. Try compiling with dub build

Workaround

Downgrade to LDC 1.41.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions