Boost.Python tutorial: not exporting inithello w/ MinGW
[Re-send] I have an issue which seems to have come up earlier this year, and I was wondering if it had been resolved: http://groups.google.com/group/boost-list/browse_frm/thread/53bbf2a4e0e94e67/8e1e3d3bb77eb5f0?lnk=gst&q=inithello&rnum=1#8e1e3d3bb77eb5f0 This is the same as my problem except I haven't verified with a manual build. When I build the tutorial example, hello.pyd doesn't appear to contain an inithello method: C:\Temp\shedskin-0.0.15>python Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug 2 2006, 12:09:59) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
import hello Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: dynamic module does not define init function (inithello)
I built the .dll and .pyd straight from the unmodified Boost.Python tutorial files, using MinGW g++ 3.4.5 and Python 2.4. Is there something I'm leaving out, or is this a bug in MinGW and/or bjam? Thanks, Max -- Be pretty if you are, be witty if you can, But be cheerful if it kills you. Everything in Windows is very simple, but the simplest thing is difficult. -Clausewitz -- Be pretty if you are, be witty if you can, But be cheerful if it kills you. Everything in Windows is very simple, but the simplest thing is difficult. -Clausewitz
Found the answer in gmane archives, and it works. http://thread.gmane.org/gmane.comp.lib.boost.user/21912/focus=21912 Much thanks to Corey Wright! -Max Wilson
participants (2)
-
Max Wilson
-
Maximilian Wilson