zig build with c library cannot reference windows api in target i386-windows-gnu #6479
Labels
bug
Observed behavior contradicts documented or intended behavior
os-windows
stage1
The process of building from source via WebAssembly and the C backend.
(and works in x86_64-windows-gnu/msvc)
the error is
basically all windows apis referenced in c are failed to link...
but once I put my own testing c code, everything is working, so I can only repro this issue with iup library
background
I want to use iup library with zig, but I cannot use it binary release, due to some compatibility problems(yes, it doesn't even works in any windows target), so I decided to use source.
it is my build.zig
make sure iup's (3.30) source has been extracted in vendor/iup folder
the testing code:
The text was updated successfully, but these errors were encountered: