[C++-sig] LINK : fatal error LNK1181: cannot open input file 'python26_d.lib'

Nikolay Mladenov nikolay.mladenov at gmail.com
Wed May 14 14:07:56 CEST 2014


May be remove the python debugging?


On Tue, May 13, 2014 at 4:08 AM, Florian Maile <f.maile at gmx.de> wrote:

> Hello,
>
> I’m really getting insane of building the tutorial. My steps were:
>
>
>    1. Unpacking the ZIP
>    2. Running bootstrap in the boost.python root directory
>    3. Configuration of user-config.jam as below:
>
>
> # Copyright 2003, 2005 Douglas Gregor
> # Copyright 2004 John Maddock
> # Copyright 2002, 2003, 2004, 2007 Vladimir Prus
> # Distributed under the Boost Software License, Version 1.0.
> # (See accompanying file LICENSE_1_0.txt or
> http://www.boost.org/LICENSE_1_0.txt)
>
> #   This file is used to configure your Boost.Build installation. You can
> modify
> # this file in place, or you can place it in a permanent location so that
> it
> # does not get overwritten should you get a new version of Boost.Build.
> See:
> #
> #
> http://www.boost.org/boost-build2/doc/html/bbv2/overview/configuration.html
> #
> # for documentation about possible permanent locations.
>
> #   This file specifies which toolsets (C++ compilers), libraries, and
> other
> # tools are available. Often, you should be able to just uncomment existing
> # example lines and adjust them to taste. The complete list of supported
> tools,
> # and configuration instructions can be found at:
> #
> #   http://boost.org/boost-build2/doc/html/bbv2/reference/tools.html
> #
>
> #   This file uses Jam language syntax to describe available tools. Mostly,
> # there are 'using' lines, that contain the name of the used tools, and
> # parameters to pass to those tools -- where paremeters are separated by
> # semicolons. Important syntax notes:
> #
> #   - Both ':' and ';' must be separated from other tokens by whitespace
> #   - The '\' symbol is a quote character, so when specifying Windows
> paths you
> #     should use '/' or '\\' instead.
> #
> # More details about the syntax can be found at:
> #
> #
> http://boost.org/boost-build2/doc/html/bbv2/advanced.html#bbv2.advanced.jam_language
> #
>
> # ------------------
> # GCC configuration.
> # ------------------
>
> # Configure gcc (default version).
> # using gcc ;
>
> # Configure specific gcc version, giving alternative name to use.
> # using gcc : 3.2 : g++-3.2 ;
>
>
> # -------------------
> # MSVC configuration.
> # -------------------
>
> # Configure msvc (default version, searched for in standard locations and
> PATH).
> # using msvc ;
>
> # Configure specific msvc version (searched for in standard locations and
> PATH).
> using msvc : 10.0 : C:\\app\\tools\\MSVisualStudio2010\\VC\\bin\\cl.exe ;
>
>
> # ----------------------
> # Borland configuration.
> # ----------------------
> # using borland ;
>
>
> # ----------------------
> # STLPort configuration.
> # ----------------------
>
> #   Configure specifying location of STLPort headers. Libraries must be
> either
> # not needed or available to the compiler by default.
> # using stlport : : /usr/include/stlport ;
>
> # Configure specifying location of both headers and libraries explicitly.
> # using stlport : : /usr/include/stlport /usr/lib ;
>
>
> # -----------------
> # QT configuration.
> # -----------------
>
> # Configure assuming QTDIR gives the installation prefix.
> # using qt ;
>
> # Configure with an explicit installation prefix.
> # using qt : /usr/opt/qt ;
>
> # ---------------------
> # Python configuration.
> # ---------------------
>
> # Configure specific Python version.
> # using python : 3.1 : /usr/bin/python3 : /usr/include/python3.1 :
> /usr/lib ;
>
> using python
>                 : 2.6
>
> # Version
>                 :
> C:\\app\\Python26\\python.exe                                         #
> Python Path
>                 :
> C:\\app\\Python26\\include                                  # include path
>                 :
> C:\\app\\Python26\\libs
> # lib path(s)
>                 : <python-debugging>on <define>BOOST_ALL_NO_LIB=1
>                 ;
>
>
>
>    1. Invoking bjam in the tutorial directory as below:
>
>
> C:\User\Z182428\boost_1_55_0\libs\python\example>cd tutorial
>
> C:\User\Z182428\boost_1_55_0\libs\python\example\tutorial>bjam
> link.jam: No such file or directory
> ...patience...
> ...patience...
> ...found 1674 targets...
> ...updating 53 targets...
> common.mkdir bin
> common.mkdir bin\msvc-10.0
> common.mkdir bin\msvc-10.0\debug
> common.mkdir ..\..\..\..\bin.v2
> common.mkdir ..\..\..\..\bin.v2\libs
> common.mkdir ..\..\..\..\bin.v2\libs\python
> common.mkdir ..\..\..\..\bin.v2\libs\python\build
> common.mkdir ..\..\..\..\bin.v2\libs\python\build\msvc-10.0
> common.mkdir ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\numeric.obj
> numeric.cpp
> compile-c-c++ ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\list.obj
> list.cpp
> compile-c-c++ ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\long.obj
> long.cpp
> compile-c-c++ ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\dict.obj
> dict.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\tuple.obj
> tuple.cpp
> compile-c-c++ ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\str.obj
> str.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\slice.obj
> slice.cpp
> common.mkdir ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\converter
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\converter\fro
> m_python.obj
> from_python.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\converter\reg
> istry.obj
> registry.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\converter\typ
> e_id.obj
> type_id.cpp
> common.mkdir ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\enum.o
> bj
> enum.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\class.
> obj
> class.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\functi
> on.obj
> function.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\inheri
> tance.obj
> inheritance.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\life_s
> upport.obj
> life_support.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\pickle
> _support.obj
> pickle_support.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\errors.obj
> errors.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\module.obj
> module.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\converter\bui
> ltin_converters.obj
> builtin_converters.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\converter\arg
> _to_python_base.obj
> arg_to_python_base.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\iterat
> or.obj
> iterator.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\stl_it
> erator.obj
> stl_iterator.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object_protoc
> ol.obj
> object_protocol.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object_operat
> ors.obj
> object_operators.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\wrapper.obj
> wrapper.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\import.obj
> import.cpp
> compile-c-c++ ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\exec.obj
> exec.cpp
> compile-c-c++
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\object\functi
> on_doc_signature.obj
> function_doc_signature.cpp
> msvc.link.dll
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\boost_python-
> vc100-gd-1_55.dll
> LINK : fatal error LNK1181: cannot open input file 'python26_d.lib'
>
>         call "C:\app\tools\msvisualstudio2010\vc\vcvarsall.bat" x86 >nul
> link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /MACHINE:X86 /MANIFEST
> /subsystem:conso
> le
> /out:"..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\boost_python-vc100
> -gd-1_55.dll"
> /IMPLIB:"..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\boos
> t_python-vc100-gd-1_55.lib" /LIBPATH:"C:\app\Python26\libs"
> @"..\..\..\..\bin.
> v2\libs\python\build\msvc-10.0\debug\boost_python-vc100-gd-1_55.dll.rsp"
>         if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
>
> ...failed msvc.link.dll
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\boo
> st_python-vc100-gd-1_55.dll
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug
> \boost_python-vc100-gd-1_55.lib
> ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\d
> ebug\boost_python-vc100-gd-1_55.pdb...
> compile-c-c++ bin\msvc-10.0\debug\hello.obj
> hello.cpp
> ...skipped <pbin\msvc-10.0\debug>hello_ext.dll for lack of
> <p..\..\..\..\bin.v2\
> libs\python\build\msvc-10.0\debug>boost_python-vc100-gd-1_55.lib...
> ...skipped <pbin\msvc-10.0\debug>hello_ext.lib for lack of
> <p..\..\..\..\bin.v2\
> libs\python\build\msvc-10.0\debug>boost_python-vc100-gd-1_55.lib...
> ...skipped <pbin\msvc-10.0\debug>hello_ext.pdb for lack of
> <p..\..\..\..\bin.v2\
> libs\python\build\msvc-10.0\debug>boost_python-vc100-gd-1_55.lib...
> ...skipped <p.>boost_python-vc100-gd-1_55.dll for lack of
> <p..\..\..\..\bin.v2\l
> ibs\python\build\msvc-10.0\debug>boost_python-vc100-gd-1_55.dll...
> ...skipped <p.>hello_ext.dll for lack of
> <pbin\msvc-10.0\debug>hello_ext.dll...
> common.mkdir bin\hello.test
> common.mkdir bin\hello.test\msvc-10.0
> common.mkdir bin\hello.test\msvc-10.0\debug
> ...skipped <pbin\hello.test\msvc-10.0\debug>hello for lack of
> <pbin\msvc-10.0\de
> bug>hello_ext.dll...
> ...failed updating 3 targets...
> ...skipped 7 targets...
> ...updated 43 targets...
>
> C:\User\Z182428\boost_1_55_0\libs\python\example\tutorial>
>
> I would be very grateful if someone could give me a clue !
>
> Thank a lot in advance !
>
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> https://mail.python.org/mailman/listinfo/cplusplus-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20140514/13352906/attachment-0001.html>


More information about the Cplusplus-sig mailing list