Skip to content

libstdc++-6.dll Missing on windows #23

@NachtRaben

Description

@NachtRaben

Good evening,
I may be entirely in the realm of wrong as I've only recently started looking into the world of kotlin/multiplatform.
When using IntelliJ on linux and building a mingwx64 binary it will not run on windows when including this library
stating that libstdc++-6.dll is missing or not found. I have tried linker opts below with no luck.

Any ideas outside of installing mingw on windows? Or any idea what would be causing this on all my windows 10/11 instances?
My hopes is a binary without any additional dependencies needed or libs copied alongside the exe

mingwX64() {
    binaries {
        compilerOptions {
            allWarningsAsErrors = true
        }
        executable {
            linkerOpts.addAll(listOf("-static", "-static-libgcc", "-static-libstdc++"))
            entryPoint = "main"
        }
    }
}

Metadata

Metadata

Assignees

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