Opened 7 years ago

Last modified 7 years ago

#11805 new Bugs

building boost.python 1.56+ with msvc

Reported by: remi.ducceschi@… Owned by: Ralf W. Grosse-Kunstleve
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.56.0 Severity: Problem
Keywords: boost.python python msvc Cc:

Description

Hello!

First, I wanted to thanks you for Boost.Python which is amazing once you succeed to use it

I've tried for at least a week to make it works with MSVC (I tried 2010 and 2015). As stated in https://svn.boost.org/trac/boost/ticket/10799 there is several problems not all easy to find. But the last one is not logged, and I've finally found how to fix it yesterday \o/

Thanks to this post on stackoverflow: http://stackoverflow.com/a/33600073 (thanks a lot to Ralph even if I don't know him)

just do the magic, and it works oO

to summarize :

  • start by removing the line 1472 "toolset.flags msvc.link.dll LINKFLAGS <suppress-import-lib>true : /NOENTRY ;"
  • replace the lines 1351 to 1356 with
    generators.register [ new msvc-linking-generator msvc.link.dll :
        OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : SHARED_LIB IMPORT_LIB :
        <toolset>msvc ] ;

This bug occurs in 1.59.0 (version that I use), but is apparently here since 1.56 (said in the post)

If this could be fixed in the next version of Boost, that would be great!

First bug report on Boost, so don't hesitate to ask for more details if needed.

Change History (2)

comment:1 by anonymous, 7 years ago

Summary: building boost.python 1.57+ with msvcbuilding boost.python 1.56+ with msvc
Version: Boost 1.57.0Boost 1.56.0

comment:2 by viboes, 7 years ago

Component: Nonepython USE GITHUB
Owner: set to Ralf W. Grosse-Kunstleve
Note: See TracTickets for help on using tickets.