zig
zig copied to clipboard
Zig fails to link gdiplus on windows
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 -lgdiplususing 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 -lgdiplusworks.
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