title: mingw32/bin/ld.exe: cannot find -lpython"
body: <p>Excuse my newbiness. I have been trying to extend python with c for days now. there are lots of methods and none of them are Windows-friendly. Currently I am trying to follow this SWIG tutorial(buttom of the page).<a href="https://en.wikibooks.org/wiki/Python_Programming/Extending_with_C#Using_SWIG" rel="nofollow noreferrer">https://en.wikibooks.org/wiki/Python_Programming/Extending_with_C#Using_SWIG</a></p>
  <p>I've reached the last step where I should link everything to python, but when I write the command</p>
  <pre><code> `gcc -shared hellomodule.o hello_wrap.o -o _hello.so -lpython`
  </code></pre>
  <p>I get this error
  &quot;c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpython&quot;</p>
  <p>I've tried:</p>
  <ul>
  <li>adding python as an environmental variable</li>
  <li>copying python address to the link command  as follows</li>
  </ul>
  <p><code>gcc -shared hellomodule.o hello_wrap.o -o _hello.so -lC:\Users\LENOVO\AppData\Local\Programs\Python\Python38-32</code></p>
  <p>any help would be REALLY appreciated</p>