title: Trouble during Python Embedding on c++
body: <p>I want use python on c++.
  So i jsut used test code like this.</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;python.h&gt;
  
  using namespace std;
  
  int main(void)
  {
      Py_Initialize();
      PyRun_SimpleString(&quot;import sys\n&quot;);
      PyRun_SimpleString(&quot;print('Hello world'\n)\n&quot;);
      Py_Finalize();
      return 0;
  }
  </code></pre>
  <p>And compiled with this command.</p>
  <pre><code>g++ test.cpp -o test -IC:\Users\iotpc\AppData\Local\Programs\Python\Python38\include -LC:\Users\iotpc\AppData\Local\Programs\Python\Python38\libs -lpython38
  </code></pre>
  <p>But it was not working and showing like this.</p>
  <pre><code>C:\Users\iotpc\AppData\Local\Temp\ccyfMS5k.o:test.cpp:(.text+0xf): undefined reference to `_imp__Py_Initialize'
  C:\Users\iotpc\AppData\Local\Temp\ccyfMS5k.o:test.cpp:(.text+0x25): undefined reference to `_imp__PyRun_SimpleStringFlags'
  C:\Users\iotpc\AppData\Local\Temp\ccyfMS5k.o:test.cpp:(.text+0x3b): undefined reference to `_imp__PyRun_SimpleStringFlags'
  C:\Users\iotpc\AppData\Local\Temp\ccyfMS5k.o:test.cpp:(.text+0x42): undefined reference to `_imp__Py_Finalize'
  collect2.exe: error: ld returned 1 exit status
  </code></pre>
  <p>I have no idea for solve this trouble, plz help me.</p>