Opened 11 years ago

Closed 11 years ago

#5642 closed Bugs (duplicate)

Python 3.2 link error ( boost::python::detail::init_module )

Reported by: pelotoescogorciao@… Owned by: Ralf W. Grosse-Kunstleve
Milestone: To Be Determined Component: python USE GITHUB
Version: Severity: Problem
Keywords: Cc:

Description

When you build (using VS2010 SP1) boost 1_46_1 with python 3.2 and you try to link your program you'll get this error:

error LNK2001: unresolved external symbol "declspec(dllimport) struct _object * cdecl boost::python::detail::init_module(struct PyModuleDef &,void (cdecl*)(void))" (imp_?init_module@detail@python@boost@@YAPAU_object@@AAUPyModuleDef@@P6AXXZ@Z)

Change History (5)

comment:1 by Ralf W. Grosse-Kunstleve, 11 years ago

I'm unable to help with this, sorry. I don't use Python 3 and I don't use bjam. Your best bet is to post to the Python C++-SIG.

There have been a few fixes since the 1_46_1 release. I suggest you try the 1_47_0 release candidate or the svn trunk before posting to the C++-SIG.

comment:2 by anonymous, 11 years ago

I have this error :(

in reply to:  2 ; comment:3 by Ralf W. Grosse-Kunstleve, 11 years ago

Replying to anonymous:

I have this error :(

This problem will only get resolved if an active Python 3 user contributes a patch.

If you need help working out a patch, please post instructions for reproducing the problem to the Python C++-SIG. Please use the boost svn trunk.

http://mail.python.org/mailman/listinfo/cplusplus-sig

in reply to:  3 comment:4 by anonymous, 11 years ago

Replying to rwgk:

Replying to anonymous:

I have this error :(

This problem will only get resolved if an active Python 3 user contributes a patch.

If you need help working out a patch, please post instructions for reproducing the problem to the Python C++-SIG. Please use the boost svn trunk.

http://mail.python.org/mailman/listinfo/cplusplus-sig

I tested in boost 1.47 beta 1, therein good :)

comment:5 by Ralf W. Grosse-Kunstleve, 11 years ago

Resolution: duplicate
Status: newclosed

Good to know. Thanks! Probably the fix was boost svn trunk rev. 67462 checked in 2010-12-26. Closing this issue.

Note: See TracTickets for help on using tickets.