title: ImportError: DLL Load Failed while importing fun: The specified module could not be found
body: <p>Hello I have started using pybind11 on windows 10 and I am not using Visual Studio.</p>
  <p>I have followed the tutorial I have watched on YT but he was using Linux and after I created my cpp file, I cloned the pybind11 in my current directory and after that I created a build folder.</p>
  <p>As what the guy said in the YT, I created a CMakeLists.txt in my folder with something inside:</p>
  <blockquote>
  <p>cmake_minimum_required(VERSION 3.9)
  project(pb11Ex)</p>
  </blockquote>
  <blockquote>
  <p>add_subdirectory(pybind11)
  pybind11_add_module(fun, ex_moc.pp)</p>
  </blockquote>
  <p>Then cd to my build directory and run</p>
  <pre><code>cmake .. -G &quot;Unix Makefiles&quot; 
  </code></pre>
  <p>Cause if I don't add it, it wont gonna generate the makefile</p>
  <p>Then after the cmake venerated a makefile, I used</p>
  <pre><code>make
  </code></pre>
  <p>command giving me the file:</p>
  <blockquote>
  <p>fun.cp39-win_amd64.pyd</p>
  </blockquote>
  <p>Then when I tried to import it from the python interpreter, I got this:</p>
  <pre><code>C:\Users\Nel\Desktop\python_projects\pyb11Ex\build&gt;python
  Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import fun
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  ImportError: DLL load failed while importing fun: The specified module could not be found
  </code></pre>
  <p>What does it mean by the DLL stuffs and how would I solve it?</p>
  <p>Update:
  I just followed the pybind docs</p>