zig icon indicating copy to clipboard operation
zig copied to clipboard

Zig fails to link gdiplus on windows

Open MoAlyousef opened this issue 3 years ago • 0 comments

Zig Version

0.10.0-dev.4280+c3d67c5c4

Steps to Reproduce

  • create a main.cpp file with int main() { return 0; }
  • build with zig c++ main.cpp -lgdiplus using a mingw64 shell.

The issue can also be reproduced using zig build with a exe.linkSystemLibrary("gdiplus"); in the build.zig file.

Expected Behavior

  • Compiling the same program with g++ main.cpp -lgdiplus works.

It seems the zig distribution on windows lacks the gdiplus definitions file. The headers seem to be there however.

Actual Behavior

error(link): DLL import library for -lgdiplus not found
error: DllImportLibraryNotFound

MoAlyousef avatar Oct 16 '22 13:10 MoAlyousef