I am trying to build hello extension using static libraries and static runtime. For some reason LINK can't open 'libboost_python-vc80-mt-s-1_34_1.lib' file
Shared works fine, I have checked that lib file is present. Below is the output.
Please help.
Scout.
Output:
--------------------------------------------------------------------------------------------------------------
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
...patience...
...found 1053 targets...
...updating 2 targets...
msvc.link.dll bin\msvc-8.0\release\link-static\runtime-link-static\hello.pyd
LINK : fatal error LNK1104: cannot open file 'libboost_python-vc80-mt-s-1_34_1.lib'
call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DLL /subsystem:console /out:"bin\msvc-8.0\release\link-static\runtime-link-static\hello.pyd" /IMPLIB:"bin\msvc-8.0\release\link-static\runtime-link-static\hello.lib" /LIBPATH:"C:\Python25\libs" @"bin\msvc-8.0\release\link-static\runtime-link-static\hello.pyd.rsp"
if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
if exist "bin\msvc-8.0\release\link-static\runtime-link-static\hello.pyd.manifest" (
mt -nologo -manifest "bin\msvc-8.0\release\link-static\runtime-link-static\hello.pyd.manifest" "-outputresource:bin\msvc-8.0\release\link-static\runtime-link-static\hello.pyd;2"
)
...failed msvc.link.dll bin\msvc-8.0\release\link-static\runtime-link-static\hello.pyd bin\msvc-8.0\release\link-static\runtime-link-static\hello.lib...
...failed updating 2 targets...
Jamroot file:
------------------------------------------------------------------------------------------------------------------
# Copyright David Abrahams 2006. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
# Specify the path to the Boost project. If you move this project,
# adjust this path to refer to the Boost root directory.
use-project boost
: ../../../.. ;
# Set up the project-wide requirements that everything uses the
# boost_python library from the project whose global ID is
# /boost/python.
project
: requirements <library>/boost/python//boost_python ;
# Declare a Python extension called hello.
python-extension hello : hello.cpp : <link>static ;
user-config.jam file:
-----------------------------------------------------------------------------------------------------------------------
# MSVC configuration
using msvc : 8.0 ;
# Python configuration
using python : 2.5 : C:/Python25 ;