title: What libraries to include to get rid of error in C++
body: <p>I am trying to compile a program in MSVC 2019 but I keep getting the following error and searching through google and SO has not lead to an answer. This is my first question so I am not sure what other detail to provide. The project itself is quite large and this seems to be a dependancy issue as opposed to  code issue (I hope) so I have not included it here as not sure how relevant is it is. Can let you know what headers I am using if people thinks it helps?</p>
  <p>Error compiling using cl64.exe:</p>
  <pre><code>        C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\ostream(534): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
          C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\ostream(527): note: while compiling class template member function 'std::basic_ostream&lt;char,std::char_traits&lt;char&gt;&gt; &amp;std::basic_ostream&lt;char,std::char_traits&lt;char&gt;&gt;::write(const _Elem *,std::streamsize)'
      with
      [
          _Elem=char
      ]
          C:\Users\User\Desktop\test.h(72): note: see reference to function template instantiation 'std::basic_ostream&lt;char,std::char_traits&lt;char&gt;&gt; &amp;std::basic_ostream&lt;char,std::char_traits&lt;char&gt;&gt;::write(const _Elem *,std::streamsize)' being compiled
      with
      [
          _Elem=char
      ]
  
           C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\istream(711): note: see reference to class template instantiation 'std::basic_ostream&lt;char,std::char_traits&lt;char&gt;&gt;' being compiled
           C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\sstream(515): note: see reference to class template instantiation 'std::basic_iostream&lt;char,std::char_traits&lt;char&gt;&gt;' being compiled
           C:\Users\User\Desktop\test.h(66): note: see reference to class template instantiation 'std::basic_stringstream&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;&gt;' being compiled
           libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol _is_c_termination_complete referenced in function __scrt_dllmain_uninitialize_c
           libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_initialize referenced in function __scrt_initialize_crt
           libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_uninitialize referenced in function __scrt_uninitialize_crt
           libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_uninitialize_critical referenced in function __scrt_dllmain_uninitialize_critical
           libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_thread_attach referenced in function __scrt_dllmain_crt_thread_attach
           libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_thread_detach referenced in function __scrt_dllmain_crt_thread_detach
  </code></pre>
  <p>Error compiling within MSVC:</p>
  <pre><code> Error  LNK2019 unresolved external symbol     URLOpenBlockingStreamA referenced in function &quot;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __cdecl downloadResource(char *)&quot; (?downloadResource@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAD@Z)   test    C:\Users\User\Desktop\test.obj
  </code></pre>