#can t build hello world

1 messages · Page 1 of 1 (latest)

patent basin
#

I installed zig 0.11 and I cant compile anything even having a clean init-exe gives me this error

error(mingw): clang exited with code 1 and stderr: error: unknown target triple 'x86-unknown-windows-gnu', please use -triple or -arch

Semantic Analysis [1833] error(mingw): clang exited with code 1 and stderr: error: unknown target triple 'x86-unknown-windows-gnu', please use -triple or -arch

Semantic Analysis [5057] error(mingw): clang exited with code 1 and stderr: error: unknown target triple 'x86-unknown-windows-gnu', please use -triple or -arch

error: unable to generate DLL import .lib file for advapi32: ClangPreprocessorFailed
tiny jasper
#
  • I think there's no such thing as windows-gnu
patent basin
#

I just did zig build

#

and it is a new project from init-exe

tiny jasper
#

Idk how to help, looks cursed

urban summit
#

how was it installed?

scenic moth
#

looks like an issue with targeting 32-bit mingw

patent basin
#

@urban summit downloaded the zip and extracted it

#

@scenic moth maybe because I have mingw installed thonk

scenic moth
#

which zip?

tiny jasper
#

Are you on 32bit windows?

patent basin
#

@scenic moth from the zig website

#

@tiny jasper no 64bit

scenic moth
#

did you download the 64-bit zip?

patent basin
#

@scenic moth this is embarrassing but you are totally correct
I guess that is what happens when I dont use the package manager

scenic moth
#

yeah, so 32-bit support is pretty bad, and the 64-bit version will work much better