Boost logo

Boost-Build :

From: Andrej van der Zee (mavdzee_at_[hidden])
Date: 2008-06-06 05:38:59


Thanks for your help. Below you'll find what you
asked.
Cheers,
Andrej

------------ Jamfile ------------

exe speedosrvd :
        [ glob *.cpp ]
    /site-config//boost_system
    /site-config//boost_thread
                /libs/server/handlers//speedo_handlers
  : <threading>multi
  ;

-------------- Jamroot ------------

import toolset : using ;
using gcc ;

path-constant TOP : . ;
path-constant INSTALL_PATH : /mbrace/speedo ;

import os ;

project : requirements
  <os>AIX:<include>/opt/freeware/include/boost-1_35
  <os>LINUX:<include>/usr/local/include/boost-1_35
  <os>NT:<include>/opt/include/
  <include>$(TOP)
  <define>BOOST_ALL_DYN_LINK
  <define>BOOST_ALL_NO_LIB=1
  <os>NT:<define>_WIN32_WINNT=0x0501
  <library-path>/opt/lib
  <dll-path>$(INSTALL_PATH)/lib
  ;

use-project /libs/util : util ;
use-project /libs/server/handlers : server/handlers ;

build-project util ;
build-project server ;
build-project client ;

------------ result with building -d2 ----------

...patience...
...found 1135 targets...
...updating 21 targets...
MkDir1 bin

    mkdir "bin"

MkDir1 bin\msvc-9.0

    mkdir "bin\msvc-9.0"

MkDir1 bin\msvc-9.0\debug

    mkdir "bin\msvc-9.0\debug"

MkDir1 bin\msvc-9.0\debug\threading-multi

    mkdir "bin\msvc-9.0\debug\threading-multi"

file
bin\msvc-9.0\debug\threading-multi\connection.obj.rsp
"connection.cpp"

-Fo"bin\msvc-9.0\debug\threading-multi\connection.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
bin\msvc-9.0\debug\threading-multi\connection.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"bin\msvc-9.0\debug\threading-multi\connection.obj.rsp"

connection.cpp

file
bin\msvc-9.0\debug\threading-multi\posix_main.obj.rsp
"posix_main.cpp"

-Fo"bin\msvc-9.0\debug\threading-multi\posix_main.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
bin\msvc-9.0\debug\threading-multi\posix_main.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"bin\msvc-9.0\debug\threading-multi\posix_main.obj.rsp"

posix_main.cpp

file
bin\msvc-9.0\debug\threading-multi\speedo_server.obj.rsp
"speedo_server.cpp"

-Fo"bin\msvc-9.0\debug\threading-multi\speedo_server.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
bin\msvc-9.0\debug\threading-multi\speedo_server.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"bin\msvc-9.0\debug\threading-multi\speedo_server.obj.rsp"

speedo_server.cpp
MkDir1 ..\..\server\handlers\bin

    mkdir "..\..\server\handlers\bin"

MkDir1 ..\..\server\handlers\bin\msvc-9.0

    mkdir "..\..\server\handlers\bin\msvc-9.0"

MkDir1 ..\..\server\handlers\bin\msvc-9.0\debug

    mkdir "..\..\server\handlers\bin\msvc-9.0\debug"

MkDir1
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi

    mkdir
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi"

file
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\get_data.obj.rsp
"..\..\server\handlers\get_data.cpp"

-Fo"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\get_data.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\get_data.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\get_data.obj.rsp"

get_data.cpp

file
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_base.obj.rsp
"..\..\server\handlers\handler_base.cpp"

-Fo"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_base.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_base.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_base.obj.rsp"

handler_base.cpp

file
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_state.obj.rsp
"..\..\server\handlers\handler_state.cpp"

-Fo"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_state.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_state.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_state.obj.rsp"

handler_state.cpp

file
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\reset.obj.rsp
"..\..\server\handlers\reset.cpp"

-Fo"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\reset.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\reset.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\reset.obj.rsp"

reset.cpp

file
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\resource_data.obj.rsp
"..\..\server\handlers\resource_data.cpp"

-Fo"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\resource_data.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\resource_data.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\resource_data.obj.rsp"

resource_data.cpp

file
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\start_transaction.obj.rsp
"..\..\server\handlers\start_transaction.cpp"

-Fo"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\start_transaction.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\start_transaction.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\start_transaction.obj.rsp"

start_transaction.cpp

file
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\stop_transaction.obj.rsp
"..\..\server\handlers\stop_transaction.cpp"

-Fo"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\stop_transaction.obj"
   -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 -c
 
-DBOOST_ALL_DYN_LINK
 
-DBOOST_ALL_NO_LIB=1
 
-D_WIN32_WINNT=0x0501
 
"-IF:\cygwin\home\Andrej van der Zee\speedo\trunk"
 
"-I\opt\include"

compile-c-c++
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\stop_transaction.obj

    call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\stop_transaction.obj.rsp"

stop_transaction.cpp

file
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.dll.rsp

"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\get_data.obj"
 
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_base.obj"
 
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\handler_state.obj"
 
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\reset.obj"
 
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\resource_data.obj"
 
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\start_transaction.obj"
 
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\stop_transaction.obj"
    
msvc.link.dll
..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.dll

        call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG
/subsystem:console
/out:"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.dll"
/IMPLIB:"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.lib"
/LIBPATH:"\opt\lib"
@"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.dll.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
        if exist
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.dll.manifest"
(
            mt -nologo -manifest
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.dll.manifest"
"-outputresource:..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.dll;2"
        )
    

file
bin\msvc-9.0\debug\threading-multi\speedosrvd.exe.rsp

"bin\msvc-9.0\debug\threading-multi\connection.obj"
 
"bin\msvc-9.0\debug\threading-multi\posix_main.obj"
 
"bin\msvc-9.0\debug\threading-multi\speedo_server.obj"
 
"..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.lib"
    
"boost_system-vc90-mt-1_35.lib"
 
"boost_thread-vc90-mt-1_35.lib"

msvc.link
bin\msvc-9.0\debug\threading-multi\speedosrvd.exe

        call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console
/out:"bin\msvc-9.0\debug\threading-multi\speedosrvd.exe"
/LIBPATH:"\opt\lib"
@"bin\msvc-9.0\debug\threading-multi\speedosrvd.exe.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
        if exist
"bin\msvc-9.0\debug\threading-multi\speedosrvd.exe.manifest"
(
            mt -nologo -manifest
"bin\msvc-9.0\debug\threading-multi\speedosrvd.exe.manifest"
"-outputresource:bin\msvc-9.0\debug\threading-multi\speedosrvd.exe;1"
        )
    
LINK : fatal error LNK1181: cannot open input file
'..\..\server\handlers\bin\msvc-9.0\debug\threading-multi\speedo_handlers.lib'
...failed msvc.link
bin\msvc-9.0\debug\threading-multi\speedosrvd.exe...
...failed updating 1 target...
...updated 20 targets...

--- Contents of
../../server/handlers/bin/msvc-9.0/release/threading-multi

---
get_data.obj
get_data.obj.rsp
handler_base.obj
handler_base.obj.rsp
handler_state.obj
handler_state.obj.rsp
reset.obj
reset.obj.rsp
resource_data.obj
resource_data.obj.rsp
speedo_handlers.dll
speedo_handlers.dll.manifest
speedo_handlers.dll.rsp
speedo_handlers.pdb
start_transaction.obj
start_transaction.obj.rsp
stop_transaction.obj
stop_transaction.obj.rsp
--- Jurko Gospodnetić <jurko.gospodnetic_at_[hidden]>
wrote:
>    Hi Andrej.
> 
> > It is the first time I compile on Windows, so I am
> > sorry about the dum question, but what is the
> > difference between .dll and .lib? Is the latter
> the
> > static lib or .a in Linux?
> 
>    On Windows .lib extension typically identifies
> static libraries which 
> may then come two flavors. One are your typical
> static libraries (which 
> Boost identifies by adding an additional 'lib'
> prefix in front of their 
> name) containing full packaged functionality, and
> the other are import 
> libraries for .dlls (which Boost names exactly like
> their correspoding 
> .dll by with the .lib extension) which when linked
> to your executable 
> cause it to link dynamically to the corresponding
> .dll at startup.
> 
>    Typically the import library will be much smalled
> then the 
> corresponding actual standalone static library.
> 
>    So for example:
> 
> DLL       :    boost_date_time-vc71-mt-1_35.dll
> Import lib:    boost_date_time-vc71-mt-1_35.lib
> Static lib: libboost_date_time-vc71-mt-1_35.lib
> 
> 
> > msvc.link.dll
> >
>
..\..\server\handlers\bin\msvc-9.0\release\threading-multi\speedo_handlers.dll
> > msvc.link
> >
> bin\msvc-9.0\release\threading-multi\speedosrvd.exe
> > LINK : fatal error LNK1181: cannot open input file
> >
>
'..\..\server\handlers\bin\msvc-9.0\release\threading-multi\speedo_handlers.lib'
> > 
> >         call "F:\Program Files\Microsoft Visual
> Studio
> > 9.0\VC\vcvarsall.bat" x86 >nul
> > link /NOLOGO /INCREMENTAL:NO /subsystem:console
> >
>
/out:"bin\msvc-9.0\release\threading-multi\speedosrvd.exe"
> > /LIBPATH:"\opt\lib" 
> >
>
@"bin\msvc-9.0\release\threading-multi\speedosrvd.exe.rsp"
> >         if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
> >         if exist
> >
>
"bin\msvc-9.0\release\threading-multi\speedosrvd.exe.manifest"
> > (
> >             mt -nologo -manifest
> >
>
"bin\msvc-9.0\release\threading-multi\speedosrvd.exe.manifest"
> >
>
"-outputresource:bin\msvc-9.0\release\threading-multi\speedosrvd.exe;1"
> >         )
> 
>    Ok, here it is attempting to link statically to
> the dll's import 
> library (which is ok, since you presumably just
> listed the 
> speedo_handlers dll as a source for the speedosrvd
> target) but can not 
> seem to find it. Wierd...
> 
>    Could you post the following:
> 
>    - the exact Jamfile used
>    - result of building with the -d2 option
>    - listing of all the files found in your 
>
..\..\server\handlers\bin\msvc-9.0\release\threading-multi
> folder after 
> a clean build
> 
>    Best regards,
>      Jurko Gospodnetić
> 
> _______________________________________________
> Unsubscribe & other changes:
>
http://lists.boost.org/mailman/listinfo.cgi/boost-build
> 
      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk