I am compiling a C code using the intel compiler. I integrated icc with
visual studio 2010. I want to generate an optimized executable which
will run on a windows machine. It is actually a virtual machine in the
cloud. I don't have a chance to install any redistributable library to
the target machine. I want to statically link all the required
libraries. How can I do this?
The recommendation about dynamic libraries applies primarily to threading run-time (like libiomp5), when you have multiple stages of linking (as when you make a .dll). In that case, the dynamic library choice avoids mistakes such as linking in multiple copies of threading library.