[C++-sig] Fail to build Boost Python Tutorial: LNK1120: 55 unresolved externals

Schmidt Markus Johann schmidt at ifd.mavt.ethz.ch
Wed Mar 20 08:19:33 EDT 2019


Dear Stefan,


might indeed be the case. Now I compiled the sources again with the VS2017 command prompt. When I then try to compile the tutorial, I get the strange output


C:\Users\schmmark\user-config.jam:3: Unescaped special character in argument 'C:Program
notice: [msvc-cfg] msvc-14.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-12.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-11.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-14.1 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe'
notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe' ''C:Program' 'Files' '(x86)Microsoft' 'Visual' 'Studio' '12.0VCbincl.exe'' for msvc, condition <toolset>msvc-12.0

[...]

notice: Loading project-config configuration file 'project-config.jam' from '../../../..'.
notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe' for msvc, condition <toolset>msvc-14.1

And finally
LINK : fatal error LNK1181: cannot open input file 'boost_python36-vc141-mt-x64-1_69.lib'


When I change the entry in the project-config.jam to `msvc : 12.0`  the notice of using msvc-14.1 vanishes, but the LNK error still comes up.


________________________________
From: Stefan Ring <stefanrin at gmail.com>
Sent: 19 March 2019 17:20:03
To: Development of Python/C++ integration
Cc: Schmidt Markus Johann
Subject: Re: [C++-sig] Fail to build Boost Python Tutorial: LNK1120: 55 unresolved externals

On Tue, Mar 19, 2019 at 3:52 PM Markus Johann Schmidt <schmmark at ethz.ch> wrote:
>  A complete output of my command prompt is attached as well.
>
> May my problem be
>
> wrong import of python library? I try to use a wildcard in lib boost_python instead of `boost_python36-vc140-mt-x64-1_69` But the error stays the same when I rename it
> Some issues with 32bit and 64bit detection?
> Am I missing some imports?

Looks like issues with MSVC's runtime libraries. Maybe rename the
other Visual Studio version's installation directories temporarily to
avoid wrong versions being picked up? I have not tried following the
tutorial myself, though. Have not used Boost on Windows in a decade.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20190320/51072f01/attachment.html>


More information about the Cplusplus-sig mailing list