Hi, I try to compile timer library with bjam.exe and I got this errors:
C:\C++\boost_1_55_0\libs\timer\build>b2 --build-dir=. tool
set=msvc --build-type=complete stage
link.jam: No such file or directory
...patience...
...found 569 targets...
...updating 34 targets...
common.mkdir ..\..\..\libs\timer\build\stage
common.mkdir boost
common.mkdir boost\bin.v2
common.mkdir boost\bin.v2\libs
common.mkdir boost\bin.v2\libs\timer
common.mkdir boost\bin.v2\libs\timer\build
common.mkdir boost\bin.v2\libs\timer\build\msvc-10.0
common.mkdir boost\bin.v2\libs\timer\build\msvc-10.0\debug
common.mkdir boost\bin.v2\libs\system
common.mkdir boost\bin.v2\libs\system\build
common.mkdir boost\bin.v2\libs\system\build\msvc-10.0
common.mkdir boost\bin.v2\libs\system\build\msvc-10.0\debug
compile-c-c++ boost\bin.v2\libs\system\build\msvc-10.0\debug\error_code.obj
File not found
error_code.cpp
C:\C++\boost_1_55_0\boost/config/select_stdlib_config.hpp(
18) : fatal error C1083: Cannot open include file: 'cstddef': No such file or di
rectory
call "C:\C++\Visual Studio 10.0\vc\vcvarsall.bat" x86
>nul
cl /Zm800 -nologo @"boost\bin.v2\libs\system\build\msvc-10.0\debug\error_code.ob
j.rsp"
...failed compile-c-c++ boost\bin.v2\libs\system\build\msvc-10.0\debug\error_cod
e.obj...
...skipped <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_system-vc100-g
d-1_55.lib for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>error_co
de.obj...
common.mkdir boost\bin.v2\libs\chrono
common.mkdir boost\bin.v2\libs\chrono\build
common.mkdir boost\bin.v2\libs\chrono\build\msvc-10.0
common.mkdir boost\bin.v2\libs\chrono\build\msvc-10.0\debug
compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\chrono.obj
File not found
chrono.cpp
C:\C++\boost_1_55_0\boost/config/select_stdlib_config.hpp(
18) : fatal error C1083: Cannot open include file: 'cstddef': No such file or di
rectory
call "C:\C++\Visual Studio 10.0\vc\vcvarsall.bat" x86
>nul
cl /Zm800 -nologo @"boost\bin.v2\libs\chrono\build\msvc-10.0\debug\chrono.obj.rs
p"
...failed compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\chrono.ob
j...
compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\thread_clock.obj
File not found
thread_clock.cpp
C:\C++\boost_1_55_0\boost/config/select_stdlib_config.hpp(
18) : fatal error C1083: Cannot open include file: 'cstddef': No such file or di
rectory
call "C:\C++\Visual Studio 10.0\vc\vcvarsall.bat" x86
>nul
cl /Zm800 -nologo @"boost\bin.v2\libs\chrono\build\msvc-10.0\debug\thread_clock.
obj.rsp"
...failed compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\thread_cl
ock.obj...
compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\process_cpu_clocks.
obj
File not found
process_cpu_clocks.cpp
C:\C++\boost_1_55_0\boost/config/select_stdlib_config.hpp(
18) : fatal error C1083: Cannot open include file: 'cstddef': No such file or di
rectory
call "C:\C++\Visual Studio 10.0\vc\vcvarsall.bat" x86
>nul
cl /Zm800 -nologo @"boost\bin.v2\libs\chrono\build\msvc-10.0\debug\process_cpu_c
locks.obj.rsp"
...failed compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\process_c
pu_clocks.obj...
...skipped <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_system-vc100-g
d-1_55.dll for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>error_co
de.obj...
...skipped <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_system-vc100-g
d-1_55.pdb for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>error_co
de.obj...
...skipped <pboost\bin.v2\libs\chrono\build\msvc-10.0\debug>boost_chrono-vc100-g
d-1_55.lib for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_sy
stem-vc100-gd-1_55.lib...
compile-c-c++ boost\bin.v2\libs\timer\build\msvc-10.0\debug\auto_timers_construc
tion.obj
File not found
auto_timers_construction.cpp
C:\C++\boost_1_55_0\boost/config/select_stdlib_config.hpp(
18) : fatal error C1083: Cannot open include file: 'cstddef': No such file or di
rectory
call "C:\C++\Visual Studio 10.0\vc\vcvarsall.bat" x86
>nul
cl /Zm800 -nologo @"boost\bin.v2\libs\timer\build\msvc-10.0\debug\auto_timers_co
nstruction.obj.rsp"
...failed compile-c-c++ boost\bin.v2\libs\timer\build\msvc-10.0\debug\auto_timer
s_construction.obj...
compile-c-c++ boost\bin.v2\libs\timer\build\msvc-10.0\debug\cpu_timer.obj
File not found
cpu_timer.cpp
C:\C++\boost_1_55_0\boost/config/select_stdlib_config.hpp(
18) : fatal error C1083: Cannot open include file: 'cstddef': No such file or di
rectory
call "C:\C++\Visual Studio 10.0\vc\vcvarsall.bat" x86
>nul
cl /Zm800 -nologo @"boost\bin.v2\libs\timer\build\msvc-10.0\debug\cpu_timer.obj.
rsp"
...failed compile-c-c++ boost\bin.v2\libs\timer\build\msvc-10.0\debug\cpu_timer.
obj...
...skipped <pboost\bin.v2\libs\chrono\build\msvc-10.0\debug>boost_chrono-vc100-g
d-1_55.dll for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_sy
stem-vc100-gd-1_55.lib...
...skipped <pboost\bin.v2\libs\chrono\build\msvc-10.0\debug>boost_chrono-vc100-g
d-1_55.pdb for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_sy
stem-vc100-gd-1_55.lib...
...skipped <pboost\bin.v2\libs\timer\build\msvc-10.0\debug>boost_timer-vc100-gd-
1_55.dll for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_syst
em-vc100-gd-1_55.lib...
...skipped <pboost\bin.v2\libs\timer\build\msvc-10.0\debug>boost_timer-vc100-gd-
1_55.lib for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_syst
em-vc100-gd-1_55.lib...
...skipped <pboost\bin.v2\libs\timer\build\msvc-10.0\debug>boost_timer-vc100-gd-
1_55.pdb for lack of <pboost\bin.v2\libs\system\build\msvc-10.0\debug>boost_syst
em-vc100-gd-1_55.lib...
...skipped <p..\..\..\libs\timer\build\stage>boost_timer-vc100-gd-1_55.dll for l
ack of <pboost\bin.v2\libs\timer\build\msvc-10.0\debug>boost_timer-vc100-gd-1_55
.dll...
...skipped <p..\..\..\libs\timer\build\stage>boost_timer-vc100-gd-1_55.lib for l
ack of <pboost\bin.v2\libs\timer\build\msvc-10.0\debug>boost_timer-vc100-gd-1_55
.lib...
...skipped <p..\..\..\libs\timer\build\stage>boost_timer-vc100-gd-1_55.pdb for l
ack of <pboost\bin.v2\libs\timer\build\msvc-10.0\debug>boost_timer-vc100-gd-1_55
.pdb...
...failed updating 6 targets...
...skipped 12 targets...
...updated 16 targets...
C:\C++\boost_1_55_0\libs\timer\build>pause
Can you help me to fix it?
Basicly I need to use the timer library, but I got error
LINK : fatal error LNK1104: cannot open file 'libboost_timer-vc100-mt-gd-1_55.lib'
so I tried the bjam to solve the problem. But when I run the compile command I got errors that some files are missing...
helios - I tried it now. Sometimes I got error (repetitively): Running is not name of inner onr outer command (translated).
Looks like they try to echo text "Running program name" directly, without using echo command. Also it seems I need to wait every time for keypress, but I did not see any message "Pres a key to continue". So I have no idea if the command succeeds or not and if I should press a key.
Edit:
I see -
p:\programy\programov nˇ\c++\visual studio 10.0\vc\bin>echo off
2 "P:\PROGRAMY\programov nˇ\C++\Visual Studio 10.0\Common7\Tools\"
Aktivní znaková stránka: 1250
2 "P:\PROGRAMY\programování\C++\Visual Studio 10.0\Common7\Tools\"
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
calling: P:\PROGRAMY\programování\C++\Visual Studio 10.0\Common7\Tools\VCVarsQue
ryRegistry.bat
p:\programy\programování\c++\visual studio 10.0\vc\bin>call "P:\PROGRAMY\program
ování\C++\Visual Studio 10.0\Common7\Tools\VCVarsQueryRegistry.bat" 32bit No64bi
t
p:\programy\programování\c++\visual studio 10.0\vc\bin>running VCVarsQueryRegist
ry.bat
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
p:\programy\programování\c++\visual studio 10.0\vc\bin>pause
Pokračujte stisknutím libovolné klávesy...
p:\programy\programování\c++\visual studio 10.0\vc\bin>cd P:\PROGRAMY\programová
ní\C++\boost_1_55_0\libs\timer\build
P:\PROGRAMY\programování\C++\boost_1_55_0\libs\timer\build>call build.bat
build.bat není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
P:\PROGRAMY\programování\C++\boost_1_55_0\libs\timer\build>.\build.bat
.\build.bat není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
P:\PROGRAMY\programování\C++\boost_1_55_0\libs\timer\build>b2 --build-dir=. tool
set=msvc --build-type=complete stage
link.jam: No such file or directory
...patience...
...found 569 targets...
...updating 18 targets...
compile-c-c++ boost\bin.v2\libs\system\build\msvc-10.0\debug\error_code.obj
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
error_code.cpp
msvc.link.dll boost\bin.v2\libs\system\build\msvc-10.0\debug\boost_system-vc100-
gd-1_55.dll
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
Creating library boost\bin.v2\libs\system\build\msvc-10.0\debug\boost_system-
vc100-gd-1_55.lib and object boost\bin.v2\libs\system\build\msvc-10.0\debug\boos
t_system-vc100-gd-1_55.exp
msvc.manifest.dll boost\bin.v2\libs\system\build\msvc-10.0\debug\boost_system-vc
100-gd-1_55.dll
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\chrono.obj
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
chrono.cpp
compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\thread_clock.obj
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
thread_clock.cpp
compile-c-c++ boost\bin.v2\libs\chrono\build\msvc-10.0\debug\process_cpu_clocks.
obj
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
process_cpu_clocks.cpp
msvc.link.dll boost\bin.v2\libs\chrono\build\msvc-10.0\debug\boost_chrono-vc100-
gd-1_55.dll
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
Creating library boost\bin.v2\libs\chrono\build\msvc-10.0\debug\boost_chrono-
vc100-gd-1_55.lib and object boost\bin.v2\libs\chrono\build\msvc-10.0\debug\boos
t_chrono-vc100-gd-1_55.exp
msvc.manifest.dll boost\bin.v2\libs\chrono\build\msvc-10.0\debug\boost_chrono-vc
100-gd-1_55.dll
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
compile-c-c++ boost\bin.v2\libs\timer\build\msvc-10.0\debug\auto_timers_construc
tion.obj
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
auto_timers_construction.cpp
compile-c-c++ boost\bin.v2\libs\timer\build\msvc-10.0\debug\cpu_timer.obj
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
cpu_timer.cpp
msvc.link.dll boost\bin.v2\libs\timer\build\msvc-10.0\debug\boost_timer-vc100-gd
-1_55.dll
running není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
Creating library boost\bin.v2\libs\timer\build\msvc-10.0\debug\boost_timer-vc
100-gd-1_55.lib and object boost\bin.v2\libs\timer\build\msvc-10.0\debug\boost_t
imer-vc100-gd-1_55.exp
msvc.manifest.dll boost\bin.v2\libs\timer\build\msvc-10.0\debug\boost_timer-vc10
0-gd-1_55.dll
common.copy ..\..\..\libs\timer\build\stage\boost_timer-vc100-gd-1_55.dll
boost\bin.v2\libs\timer\build\msvc-10.0\debug\boost_timer-vc100-gd-1_55.dll
1 files copied
common.copy ..\..\..\libs\timer\build\stage\boost_timer-vc100-gd-1_55.lib
boost\bin.v2\libs\timer\build\msvc-10.0\debug\boost_timer-vc100-gd-1_55.lib
1 files copied
common.copy ..\..\..\libs\timer\build\stage\boost_timer-vc100-gd-1_55.pdb
boost\bin.v2\libs\timer\build\msvc-10.0\debug\boost_timer-vc100-gd-1_55.pdb
1 files copied
...updated 18 targets...
Edit 2:
I have found the file which was reported as missing - error_code.obj - in previous test. Now it is there:
boost_1_55_0\libs\timer\build\boost\bin.v2\libs\system\build\msvc-10.0\debug
also I see some files here:
boost_1_55_0\libs\timer\build\boost\bin.v2\libs\timer\build\msvc-10.0\debug
Is this the file that I should expect as final product?
boost_timer-vc100-gd-1_55.dll
boost_timer-vc100-gd-1_55.lib
I think that it succeeded. So I need to run it from the VS console. Thanks a lot!
If you need to rename anything, you're doing something wrong. The easiest way to make sure you'll get the libs/DLLs you'll need to to pass --build-type=complete
to bjam.