|
Boost : |
Subject: [boost] boost log project - compile with mingw (gcc 4.5.4) on win7- problems
From: Aleksander Sandro GRM (sandro.grm_at_[hidden])
Date: 2012-01-19 05:13:02
Dear,
recently I started to use boost::log api. I work on win7 machine and use
mingw-x86-64 compiler ver. 4.5.4.
Now I got trunk version for boost and boost::log api and encountered
problems with compilation.
Problem is with:
C:\Users\sandro\Documents\progs\opt\cpp_libs\boost_trunk>bjam --with-log
-a toolset=gcc target-os=windows variant=release link=shared
runtime-link=sha
red define=BOOST_ALL_DYN_LINK define=BOOST_LOG_USE_CHAR stage
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\generators.jam:1085:
in ensure-type from module generators
error: target { simple_event_log.mc. } has no type
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\generators.jam:1319:
in generators.construct from module generators
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:1495:
in construct from module object(typed-target)@354
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:1298:
in object(typed-target)@354.generate from module objec
t(typed-target)@354
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:732:
in generate-really from module object(main-target)@834
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:704:
in object(main-target)@834.generate from module object(
main-target)@834
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:258:
in object(project-target)@343.generate from module obje
ct(project-target)@343
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:848:
in targets.generate-from-reference from module targets
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:1217:
in generate-dependencies from module object(install-ta
rget-class)@97
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:1269:
in object(install-target-class)@97.generate from modul
e object(install-target-class)@97
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:732:
in generate-really from module object(main-target)@808
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:704:
in object(main-target)@808.generate from module object(
main-target)@808
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:848:
in targets.generate-from-reference from module targets
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:1217:
in generate-dependencies from module object(top-level-
target)@106
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:1269:
in alias-target-class.generate from module object(top-
level-target)@106
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk\boostcpp.jam:409:
in build-multiple from module object(top-level-target)@106
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk\boostcpp.jam:373:
in object(top-level-target)@106.generate from module object(top-level-targe
t)@106
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:732:
in generate-really from module object(main-target)@812
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2/build\targets.jam:704:
in object(main-target)@812.generate from module object(
main-target)@812
C:/Users/sandro/Documents/progs/opt/cpp_libs/boost_trunk/tools/build/v2\build-system.jam:736:
in load from module build-system
C:\Users\sandro\Documents\progs\opt\cpp_libs\boost_trunk\tools\build\v2/kernel\modules.jam:283:
in import from module modules
C:\Users\sandro\Documents\progs\opt\cpp_libs\boost_trunk\tools\build\v2/kernel/bootstrap.jam:142:
in boost-build from module
C:\Users\sandro\Documents\progs\opt\cpp_libs\boost_trunk\boost-build.jam:17:
in module scope from module
To correct the error in the spirit of link ...( unfortunately I can't
find it now )
1. boost_trunk\tools\build\v2\tools\mc.jam:
line 41:
actions compile
{
# mc $(MCFLAGS) -h "$(<[1]:DW)" -r "$(<[2]:DW)" "$(>:W)" # ---
replace mc with windmc ---
windmc $(MCFLAGS) -h "$(<[1]:DW)" -r "$(<[2]:DW)" "$(>:W)"
}
2. boost_trunk\tools\build\v2\tools\gcc.jam:
line 28: addin additional import
import fortran ;
import mc ;
After compile starts but got errors in compile time. All compile message
is attached in compile.log
I use trunk versions from date 18.01.2012 for both, boost and boost::log
api.
Best regards,
Sandro.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk