- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to compile using /ML or /MT compiler option.
It would be better to link using dynamic libraries if you are compiling multithreaded application.
It would be better to link using dynamic libraries if you are compiling multithreaded application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page