On 4/3/07, <b class="gmail_sendername">Ron Brown, Jr.</b> <<a href="mailto:rbrown@gamry.com">rbrown@gamry.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greetings,<br><br>I've been having a bit of trouble in making a simple embedded python<br>application using boost, and am in need of some guidance. Hopefully I'm<br>in the right place. All I'm trying to do is just fit the basic pieces
<br>together to see if embedding python is a viable solution for my next<br>project.<br><br>I'm on Windows using mingw tools, specifically:<br>g++ (GCC) 3.4.2 (mingw-special)<br>Boost 1.33.1<br>Python 2.5</blockquote>
<div><br>I suggest you to try other Boost version. Recently there were some post, where David Abrahams said build system was broken on this platform.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was able to build Boost after minimal problems, mostly from setting up<br>my environment for Boost.Jam. All of the examples, including the<br>embedding.cpp example, seem to all compile/link just fine, and I'm able<br>
to import the example Python extensions and use them.<br><br>My problem lies in getting the most basic embedded Python application<br>(see below) to link.<br><br>I'm trying to link my simple app here with boost_python.lib and
<br>python25.lib. When I try to link, I'm getting:<br>C:/Boost/boost_1_33_1/boost/python/cast.hpp: undefined reference to<br>`_imp___Py_NoneStruct'</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am I barking up the wrong tree by trying to statically link those libs?</blockquote><div><br>Are you sure you are linking with the right version of Python? <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Any advice that anyone could give would be greatly appreciated. Thanks<br>in advance,</blockquote><div><br>I guess the problem with your "make" files.<br clear="all"></div></div><br>-- <br>Roman Yakovenko<br>C++ Python language binding
<br><a href="http://www.language-binding.net/">http://www.language-binding.net/</a>