title: MS C/C++ Linkeroption /MT but still unresolved _allmul() when linking with different IDE
body: <p>I am writing lib files in VS that have to be imported into CVI.
  Recently a linker problem occured.</p>
  
  <p>It says that _allmul() is an undefined symbol. </p>
  
  <p>_allmul() and freinds are implemented as calls to the CRT library functions to handle various 64bit operations.</p>
  
  <p>The lib file that i write is static because i want all the code to live inside it.
  Linking with VS is no problem and all unittests pass.</p>
  
  <p>Linking with the CVI-IDE leaves the CVI Linkter complaining about an unresolved _allmul().</p>
  
  <p>I thougth that setting the /MT switch in VS is enough to make the CRT link statically, this seems to be wrong.</p>
  
  <p>Why is my assumtion wrong?
  How can i link the CRT calls statically?</p>
  
  <hr>
  
  <p>Edit: </p>
  
  <p>Here is a short demo of a project that i can compile in VS2010 but that i can not link to in CVI
  The following is compiled as a LIB project:</p>
  
  <p>HEADER </p>
  
  <pre><code>void print( unsigned A, unsigned B );
  </code></pre>
  
  <p>CODE</p>
  
  <pre><code>#include "MyprintInterface.h"
  
  #include &lt;stdio.h&gt;
  
  void print( unsigned A, unsigned B ){
      long long copyA = ( long long ) A;
      long long copyB = ( long long ) B;
      printf_s( " %lli * %lli = %lli ", copyA, copyB, copyA * copyB ); 
      // copyA * copyB -&gt; this invokes allmul
      // printf_s this is a ms specific function
  }
  </code></pre>