79486973

Date: 2025-03-05 15:45:05
Score: 0.5
Natty:
Report link

In the end, the solution turned out to be very counterintuitive:

I had to use /nodefaultlib on libucrt.lib, and then link libucrt.lib

The specific line in my CMakeLists (for the Intel compiler, which uses /Qoption,link, as a prefix for the linker option) was as follows:

target_link_options(MyTarget PUBLIC /Qoption,link,/NODEFAULTLIB:libucrt.lib libucrt.lib)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: T. J. Evers