Linker issues with iced GUI library

Hey guys, because I had some linker issues with iced GUI library,

I ran this: rustup default stable-x86_64-pc-windows-gnu

And when I tried to build it again I am getting this:

warning: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
warning: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in

error: failed to run custom build command for `spirv_cross v0.23.1`

I am on windows by the way.

Is there a way to resolve this?

It might have to do with you using the windows-gnu target. I think you don't normally want to use that on Windows, or like you need mingw installed or something like that. Does it work with the x86_64-pc-windows-msvc target?

Like trying to run rustup default x86_64-pc-windows-msvc and then building.

1 Like

so I did rustup default stable-x86_64-pc-windows-msvc

and now I get this issue:

error: linking with `link.exe` failed: exit code: 1120

Have you ever installed Visual Studio? I think you need the MSVC toolchain installed, and it comes with Visual Studio.

1 Like

yeah its all installed and iced in the past worked for me, not too sure what is going on now.

Bummer, I'm not sure what's going on.

Maybe try doing a rustup update stable?

1 Like

Could try that, thanks mate