oneAPI-samples icon indicating copy to clipboard operation
oneAPI-samples copied to clipboard

Is it possible to statically link the MSVC/Intel runtime libraries?

Open pulpocaminante opened this issue 3 years ago • 2 comments

Coming from the native MSVC toolchain I'm a little confused, the only option under DPC++->Code Generation is Multi-Threaded DLL. Is it not possible to statically link the runtime libraries?

pulpocaminante avatar Jan 12 '23 20:01 pulpocaminante

OneSmpl_Team3 working on this.

sau0 avatar Apr 26 '23 06:04 sau0

(OneSmpl_Team3) @pulpocaminante DPC++ Compiler may not provide the same options for static linking as the native MSVC. However, you can still try to force static linking by manually modifying the linker flags. /MT /nodefaultlib:msvcrt.lib libcmt.lib

sau0 avatar Apr 26 '23 17:04 sau0