title: compile some code with boost.python by mingw in win7-64bit
body: <p>I decided to make my program compatible with windows environment.But I have very little programming experience on windows.There are some errors need help.</p>
  
  <p>Environment:</p>
  
  <ul>
  <li>os: win7-64bit,</li>
  <li>ide: codeblocks12.11,</li>
  <li>python: Python 2.7.3 Windows X86-64 Installer (Windows AMD64 / Intel
  64 / X86-64 binary [1] -- does not include source)</li>
  <li>compiler: mingw that come from codeblocks installation package.</li>
  <li>boost: boost1.52</li>
  </ul>
  
  <p>I only copy and test this "hello" code that come from ".\boost_1_52_0\libs\python\example\tutorial"</p>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;boost/python/module.hpp&gt;
  #include &lt;boost/python/def.hpp&gt;
  
  char const* greet()
  { return "hello, world"; }
  
  BOOST_PYTHON_MODULE(hello_ext)
  {
      using namespace boost::python;
      def("greet", greet);
  }
  
  using namespace std;
  int main()
  {
      cout &lt;&lt; "Hello world!" &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>Error info:</p>
  
  <pre><code>mingw32-g++.exe -Wall -fexceptions  -g  -ID:\boost\include\boost-1_52 -IC:\Python27\include  -c E:\project\snail-MW\test1\main.cpp -o obj\Debug\main.o
  mingw32-g++.exe -LD:\boost\lib\ -LC:\Python27\libs  -o bin\Debug\test1.exe obj\Debug\main.o  
  obj\Debug\main.o: In function `inithello_ext':
  E:/project/snail-MW/test1/main.cpp:11: undefined reference to `boost::python::detail::init_module(char const*, void (*)())'
  obj\Debug\main.o: In function `ZNK5boost6python9type_info4nameEv':
  D:/boost/include/boost-1_52/boost/python/type_id.hpp:165: undefined reference to `boost::python::detail::gcc_demangle(char const*)'
  obj\Debug\main.o: In function `ZNK5boost6python15to_python_valueIRKPKcEclES5_':
  D:/boost/include/boost-1_52/boost/python/converter/builtin_converters.hpp:161: undefined reference to `boost::python::converter::do_return_to_python(char const*)'
  ................
  </code></pre>
  
  <p>It have also do some errors that only compile by the command of "bjam toolset=gcc variant=release  " in the station ".\boost_1_52_0\libs\python\example\tutorial".</p>