VSCode fatal error LNK1112:

Please can anybody suggest what's happening here?
Everything was working fine yesterday, nothing has changed (that I know of) and now cargo won't build even the default code.
On windows 10:
Steps

  1. Open VS Code
  2. Open terminal from within VSCode (tried powershell and commend prompt)
  3. type cargo new hello
  4. cd hello
  5. cargo build

I get the message: fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'

Trying this with a windows command prompt directly and it works fine.
Checking settings, both the windows cmd and the terminal in VSCode use %windir%\system32\cmd.exe

rustup show

Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\tony.rustup

stable-x86_64-pc-windows-msvc (default)
rustc 1.49.0 (e1884a8e3 2020-12-29)

Thanks in advance!
Tonycargo

OK, strange, I restarted windows and now it's fine!
Leaving this thread here in case somebody else gets this strange problem.