Skip to content

issue static-linking on msys2? #343

@MagicalDrizzle

Description

@MagicalDrizzle

It seems I'm having trouble making a static build, the compile step is all good but the linking step fails...(the classic undefined reference)
building from latest git

D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text+0x5f93): undefined reference to `glslang::TProgram::~TProgram()'
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text+0x5f9e): undefined reference to `glslang::TShader::~TShader()'
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text.unlikely+0x555): undefined reference to `glslang::TShader::~TShader()'
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text.unlikely+0x591): undefined reference to `glslang::TProgram::~TProgram()'
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text.unlikely+0x59c): undefined reference to `glslang::TShader::~TShader()'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

(a bazillion similar lines before that but that'd be way too long for this post)

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