2

Is there any nmake option for compiling Visual C++ 2010 without the output dll or exe depends on the MSVCR100.dll ?

2 Answers2

4

/MT compiler switch is used to statically link to CRT. You should add it to compiler options inside your makefile.

Nikola Smiljanić
  • 26,745
  • 6
  • 48
  • 60
0

Link to Answer

with project settings, not with compiler keys. To do this, go to C/C++ Properties -> Code Generation and under Runtime Library select Multi-threaded (/MT) or Multi-threaded Debug (/MTd) from the drop-down.

Community
  • 1
  • 1
Alexey
  • 593
  • 1
  • 5
  • 14