Question : linking with `link.exe` failed: exit code: 1189
Answered by : zwazel
Download and install the Build Tools for Visual Studio 2019.
During installation select the C++ tools.
It will download almost 5GB of data.
Then restart the machine after installation and compiling the code will work fine.
Source : https://stackoverflow.com/a/57843860/12287687 | Last Update : Wed, 13 Apr 22