Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8543621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:20:57+00:00 2026-06-11T12:20:57+00:00

I am trying to build Boost.Log ( http://boost-log.sourceforge.net/libs/log/doc/html/index.html ). I added it to my

  • 0

I am trying to build Boost.Log ( http://boost-log.sourceforge.net/libs/log/doc/html/index.html ). I added it to my boost sources and executed my usual boost build command.

b2 --build-dir="D:\boost\1.51.0\boost" toolset=gcc variant=release link=static threading=multi  runtime-link=static --build-type=complete

But nothing happened and I received this in the end:

D:/boost/1.51.0/src/tools/build/v2/build\generators.jam:1085: in ensure-type from module generators
error: target { simple_event_log.mc. } has no type
D:/boost/1.51.0/src/tools/build/v2/build\generators.jam:1319: in generators.construct from module generators
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:1495: in construct from module object(typed-target)@491
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:1298: in object(typed-target)@491.generate from module object(typed-target)@491
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:732: in generate-really from module object(main-target)@1871

D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:704: in object(main-target)@1871.generate from module object(main-target)@1871
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:258: in object(project-target)@474.generate from module object(project-target)@474
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference from module targets D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:1217: in generate-dependencies from module object(install-target-class)@96
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:1269: in object(install-target-class)@96.generate from module object(install-target-class)@96
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:732: in generate-really from module object(main-target)@930 D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:704: in object(main-target)@930.generate from module object(main-target)@930
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference from module targets D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:1217: in generate-dependencies from module object(top-level-target)@103
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:1269: in alias-target-class.generate from module object(top-level-target)@103
D:/boost/1.51.0/src\boostcpp.jam:391: in build-multiple from module object(top-level-target)@103
D:/boost/1.51.0/src\boostcpp.jam:376: in object(top-level-target)@103.generate from module object(top-level-target)@103
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:732: in generate-really from module object(main-target)@934 D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:704: in object(main-target)@934.generate from module object(main-target)@934
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference from module targets D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:1217: in generate-dependencies from module object(top-level-target)@104
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:1269: in alias-target-class.generate from module object(top-level-target)@104
D:/boost/1.51.0/src\boostcpp.jam:391: in build-multiple from module object(top-level-target)@104
D:/boost/1.51.0/src\boostcpp.jam:376: in object(top-level-target)@104.generate from module object(top-level-target)@104
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:732: in generate-really from module object(main-target)@935 D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:704: in object(main-target)@935.generate from module object(main-target)@935
D:/boost/1.51.0/src/tools/build/v2/build\targets.jam:258: in object(project-target)@42.generate from module object(project-target)@42
D:/boost/1.51.0/src/tools/build/v2\build-system.jam:736: in load from module build-system
D:\boost\1.51.0\src\tools\build\v2/kernel\modules.jam:283: in import from module modules
D:\boost\1.51.0\src\tools\build\v2/kernel/bootstrap.jam:142: in boost-build from module
D:\boost\1.51.0\src\boost-build.jam:17: in module scope from module                                   

Could you, please explain what does it means or how I can see more error info? How did you build Boost.Log?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:20:58+00:00Added an answer on June 11, 2026 at 12:20 pm

    The answer to the problem can be found here:

    Second, at some point the library will require a Message Compiler tool
    (mc.exe), which is not available in MinGW, Cygwin and MSVC Express
    Edition. You have two options to settle the problem. In case of MinGW
    and Cygwin you can use the windmc.exe tool, which is the analogue of
    the original mc.exe. In order to do that you will have to patch
    Boost.Build files (in particular, the tools/build/v2/tools/mc.jam
    file) as described in this ticket. After that you will be able to
    specify the mc-compiler=windmc option to bjam to build the library.

    Here is a link to the patch. Applying the patch and passing mc-compiler=windmc should solve the problem.

    Note: Also, as noted on the comments in the ticket, you need to add import mc ; after import fortran ; in tools\build\v2\tools\gcc.jam.

    Here is what your mc.jam file should look like after applying the patch (make sure your file looks like the following):

    import common ;
    import generators ;
    import feature : feature get-values ;
    import toolset : flags ;
    import type ;
    import rc ;
    
    feature.feature mc-compiler : mc windmc : propagated ; 
    feature.set-default mc-compiler : mc ; 
    
    rule init ( )
    {
    }
    
    type.register MC : mc ;
    
    
    # Command line options
    feature mc-input-encoding : ansi unicode : free ;
    feature mc-output-encoding : unicode ansi : free ;
    feature mc-set-customer-bit : no yes : free ;
    
    flags mc.compile MCFLAGS <mc-input-encoding>ansi : -a ;
    flags mc.compile MCFLAGS <mc-input-encoding>unicode : -u ;
    flags mc.compile MCFLAGS <mc-output-encoding>ansi : -A ;
    flags mc.compile MCFLAGS <mc-output-encoding>unicode : -U ;
    flags mc.compile MCFLAGS <mc-set-customer-bit>no : ;
    flags mc.compile MCFLAGS <mc-set-customer-bit>yes : -c ;
    
    generators.register-standard mc.compile.mc : MC : H RC : <mc-compiler>mc ; 
    generators.register-standard mc.compile.windmc : MC : H RC : <mc-compiler>windmc ;
    
    actions compile.mc
    { 
        mc $(MCFLAGS) -h "$(<[1]:DW)" -r "$(<[2]:DW)" "$(>:W)" 
    }
    
    actions compile.windmc
    { 
        windmc $(MCFLAGS) -h "$(<[1]:DW)" -r "$(<[2]:DW)" "$(>:W)" 
    } 
    

    WARNING

    boost-log\branches\bleeding-edge fails to compile for me (gcc 4.7.1). I used the one in boost-log\trunk\boost-log for a successful build (built on 2012-09-05).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build an example of boost::asio http://www.boost.org/doc/libs/1_43_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp but without any luck. System:
I am trying to build boost , I have both visual studio 2005 and
I'm trying to build Boost 1.49.0 using MSVC2010 and it fails with the following
I'm trying to build simplest Boost.Asio tutorial example "timer1" (it's in timer.cpp) with waf
I am trying to build a project using Boost's Asio and I am having
I'm trying to build s-expression objects using boost::proto with the following terminals: typedef proto::terminal<
I am following these instructions trying to build Boost MPI .lib files, but I
Trying to build the following simple example #include <boost/python.hpp> using namespace boost::python; tuple head_and_tail(object
I'm trying to build TorTunnel on my mac. I've successfully installed the Boost library
I'm trying to build Boost.MPI 1.47 with Intel MPI 4.0.0.012, but Boost is not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.