title: Exe not working properly outside of visual studio?
body: <p>My program runs fine in the IDE (Visual Studio 2022), in debug and release modes.</p>
  <p>When I make a build and want to start the <code>.exe</code> from Explorer, it starts and runs, but... well, have a look:</p>
  <p>This is how it should be:</p>
  <p><img src="https://i.stack.imgur.com/tnOLq.png" alt="IDE output" /></p>
  <p>This is what it looks like outside of VS:</p>
  <p><img src="https://i.stack.imgur.com/eDFzW.png" alt="EXE output" /></p>
  <p>So far, I have tried to set the Runtime Library to Multi-threaded (/MT), but that didn't work.</p>
  <p>Otherwise, I really don't seem to find much. It seems the standalone <code>.exe</code> is missing some dependencies, but I can't figure out what I need to do. From my understanding, everything I have included in the header should get compiled &quot;into&quot; the <code>.exe</code> as well.</p>
  <p>The <code>int128_t</code> doesn't seem to work. Neither do the ANSI color codes.
  The timer is working, though.</p>
  <p>The code:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;chrono&gt;
  #include &lt;boost/multiprecision/cpp_int.hpp&gt;
  
  namespace mp = boost::multiprecision;
  
  bool isPrime(mp::int128_t n);
  mp::int128_t n{ 0 }, y{ 0 };
  
  int main()
  {
      std::cin &gt;&gt; y;
      std::cin &gt;&gt; n;
      std::cout &lt;&lt; &quot;\n&quot;;
      
      for (y; y &lt;= n; y++)
      {
          int lengthy = to_string(y).length();
  
          const auto start = std::chrono::steady_clock::now();
  
          if (isPrime(y) == true)
              std::cout &lt;&lt; &quot;\033[1;7;32m&quot; &lt;&lt; std::setw(lengthy) &lt;&lt; std::left &lt;&lt; y &lt;&lt; &quot;\033[0m &quot;;
          else
          {
              std::cout &lt;&lt; std::setw(lengthy) &lt;&lt; std::left &lt;&lt; y &lt;&lt; &quot; &quot;;
          }
  
          const auto end = std::chrono::steady_clock::now();
          std::chrono::duration&lt;double&gt; elapsed = end - start;
  
          if (elapsed.count() &gt;= 0.1)
              std::cout &lt;&lt; &quot;\033[1;7;36m&quot; &lt;&lt; std::setw(10) &lt;&lt; std::left &lt;&lt; elapsed.count() &lt;&lt; &quot;\033[0m &quot;;
          else
          {
              std::cout &lt;&lt; &quot;\033[1;36m&quot; &lt;&lt; std::setw(10) &lt;&lt; std::left &lt;&lt; elapsed.count() &lt;&lt; &quot;\033[0m &quot;;
          }
      } 
  
      std::cout &lt;&lt; &quot;\n&quot;;
      std::cin &gt;&gt; y;
  }
  
  bool isPrime(mp::int128_t n)
  {
      if (n == 2 || n == 3)
          return true;
      
      if (n &lt;= 1 or n % 2 == 0 or n % 3 == 0)
          return false;
      
      for (uint64_t i = 5; i * i &lt;= n; i += 6)
      {
          if (n % i == 0 or n % (i + 2) == 0)
              return false;
      }
  
      return true;
  }
  </code></pre>