Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7957 Discussions

New to ICC/Windows; no -i-static option?

swsnyder
Beginner
288 Views
Hello.

Although I've been using ICC on Linux for many years, I am now just starting to use it on Windows. I am a little dismayed to discover that the -i-static switch is a Linux-only thing, at least according to the doc.

Does the absence of this option mean that I have to distribute ICC runtime libraries when running my software on machines that don't have the compiler installed on them? Or is there an alternate method of using the ICC runtime code short of linking the entire application statically?

If it matters, I am running ICC v9.0.28 with VS 2003 on a Win2K/SP4 system.

Thanks.
0 Kudos
1 Reply
bobh999
Beginner
288 Views
If you compile with /MT instead of the /MD compiler option, the linker should link the static CRT libraries. However, as I am having linking difficulties myself, this may not cure the problem.
0 Kudos
Reply