title: WINDOWS api can't resolve external symbol not a
body: <p>Does anyone have any idea why this is happening?</p>
  
  <pre><code>#define _x64
  
  #include&lt;Windows.h&gt;
  #include&lt;iostream&gt;
  #include&lt;windef.h&gt;
  #include&lt;Winuser.h&gt;
  #include&lt;tchar.h&gt;
  using namespace std;
  
  int WINAPI MessageBoxW(
  _In_opt_ HWND    hWnd,
  _In_opt_ LPCTSTR lpText,
  _In_opt_ LPCTSTR lpCaption,
  _In_     UINT    uType
   );
   int main(){
    cout &lt;&lt; MessageBoxW(NULL,L"",L"",0);
   }
  </code></pre>
  
  <p>I am using compiling with Microsoft (R) Incremental Linker Version 14.00.24215.1 and using the "/EHsc" option at the command line for a command line input of "cl /EHsc winbasicb.cpp". I am not doing anything fancy I feel. Just using the /EHsc option for optimized compilation and linking.</p>
  
  <p>I am getting this error.</p>
  
  <pre><code>/out:winbasicb.exe
  winbasicb.obj
  winbasicb.obj : error LNK2019: unresolved external symbol __imp_MessageBoxW referenced in function main 
  winbasicb.exe : fatal error LNK1120: 1 unresolved externals
  </code></pre>