lld can't find libshlwapi.a when cross-compiling win32 C app from Linux #3711
Labels
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
os-windows
Milestone
Pretty simple. When I attempt to use
inside of a build.zig that cross-compiles from Linux to a i386-windows-gnu target, I get an error message from lld:
If I comment out that specific line, but leave other pertinent libraries like user32, I don't get an error about a missing library, but I do get an expected linker error about a missing symbol.
Indeed, doing a search for shlwapi in the lib/zig tree, I see no files, and no files contained in that subdirectory contain any mention of SHDeleteKey, the symbol I'm looking for, aside from the mingw header file. On the other hand, looking for a symbol in user32 like SetWindowPos results in a hit inside a file named user32.def.in. I see no such file for shlwapi.
The text was updated successfully, but these errors were encountered: