title: Embedding Python: undefined reference to `_imp__Py_Initialize'
body: <p>I am trying to embed python 3.7.0 in a C++ application and use MinGW to compile.</p>
  
  <pre><code>#include "Dependencies/include/Python.h"
  
  
  int main()
  {
  
      PyObject* myPointer;
      Py_Initialize();
      return 0;
  }
  </code></pre>
  
  <p>I compile with this:</p>
  
  <blockquote>
    <p>g++ ./TestEmbedding.cpp</p>
  </blockquote>
  
  <p>I get this error: </p>
  
  <blockquote>
    <p>undefined reference to `_imp__Py_Initialize'</p>
  </blockquote>