title: LNK 2019 ShellExecuteEx unresolved external symbol Qt Creator
body: <p>I work on Windows7 x64 in c++ language. </p>
  
  <p>I created a project that open firefox browser when I show a marker to my web cam, using ShellExecuteEx function. My project works well with visual studio 2010.</p>
  
  <p>But, when I try to run my project with Qt Creator, I get this error:</p>
  
  <pre><code>main_cam.obj:-1: error: LNK2019: riferimento al simbolo esterno __imp__ShellExecuteExW@4 non risolto nella funzione _main
  debug\cam.exe:-1: error: LNK1120: 1 esterni non risolti
  </code></pre>
  
  <p>The code is:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;string&gt;   // for strings
  #include &lt;iomanip&gt;  // for controlling float print precision
  #include &lt;sstream&gt; // string to number conversion
  #include &lt;windows.h&gt;
  #include &lt;ShellAPI.h&gt;
  include [...]
  int main () {
  [...]
  SHELLEXECUTEINFO ShExecInfo = {0};
  ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
  ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
  ShExecInfo.hwnd = NULL;
  ShExecInfo.lpVerb = NULL;
  ShExecInfo.lpFile = "firefox.exe";
  ShExecInfo.lpDirectory = NULL;
  ShExecInfo.nShow = SW_SHOW;
  ShExecInfo.hInstApp = NULL;
  [...]
  if (condition_is_verified) {
  
  ShExecInfo.lpParameters = (LPCWSTR)"www.google.it";
  ShellExecuteEx(&amp;ShExecInfo);
  WaitForSingleObject(ShExecInfo.hProcess,INFINITE);
  }
  [...]
  }//end main 
  </code></pre>
  
  <p>I think problem is shell32.lib . If it is, I haven't this library in my pc. how can I fix it?</p>
  
  <p>Can you help me?</p>
  
  <p>Thanks in advance!</p>