title: The specified module could not be found in R
body: <p>I am developing a package using Rcpp and another third party C++ library. When I tried to install the package, I got</p>
  
  <pre><code>Error in inDL(x, as.logical(local), as.logical(now), ...) : 
    unable to load shared object 'C:/Users/Admin/Documents/R/win-library/2.15/packagename/libs/i386/package.dll':
     LoadLibrary failure:  The specified module could not be found.
  </code></pre>
  
  <p>In 32-bit Windows OS, following an advice from my colleague, I fixed the problem by adding location of following dlls from MingW to system path.</p>
  
  <pre><code>libgcc_s_dw2-1.dll
  </code></pre>
  
  <p>But 64-bit Windows, I get the same error even with the dll although I am using 32-bit R.</p>
  
  <p>So my question:</p>
  
  <p>Is there any way to know why <code>The specified module could not be found</code> error occurs? I mean I would like to know which module is missing. Maybe verbose option some where?</p>