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 9004021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:48:23+00:00 2026-06-16T00:48:23+00:00

boost::recursive_mutex and boost::lock_guard seem to use boost_thread-bcb-mt-1_39.dll in C++ Builder 2010. I see that

  • 0

boost::recursive_mutex and boost::lock_guard seem to use boost_thread-bcb-mt-1_39.dll in C++ Builder 2010. I see that there is also static version – boost_thread-bcb-mt-1_39.lib.

My code is something like this:

boost::recursive_mutex mylock;
//...
boost::lock_guard<boost::recursive_mutex> lock(mylock);

However, if I set compile option to Release and set Dynamic RTL option to False all I get is Mixing a dll boost library with a static runtime is a really bad idea…. Returning Dynamic RTL to True compiles but then it needs additional DLL’s – cc32100mt.dll and boost_thread-bcb-mt-1_39.dll.

Is there a way to compile it statically in a single exe? After all, LIB file is provided, it should be possible. Is it a problem with this version of C++ Builder or Boost?

  • 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-16T00:48:25+00:00Added an answer on June 16, 2026 at 12:48 am

    What I needed was to define in a header file:

    #define BOOST_THREAD_USE_LIB
    

    right before:

    #include <boost/thread/recursive_mutex.hpp>
    #include <boost/thread/locks.hpp>
    

    After then it compiles without any issues.

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

Sidebar

Related Questions

boost::recursive_mutex m; m.lock(); versus boost::lock_guard<boost::recursive_mutex> lock( mutex_ ); Is there an advantage to use
I am using boost::recursive_mutex. But when I use try_lock on this for the first
Are boost ptime instances always UTC? I can't see any time zone info on
C++0x thread library or Boost.thread define non-member variadic template function that lock all lock
I'm using Boost.Filesystem to create a listing of files in a directory. I use
Is it possible that nested calls of io_service.run_one() is not a valid use of
I have large Boost/Spirit metaprogram that is blowing gcc's stack when I try to
I have a folder with many sub folders that also contains many sub folders
Boost documents said that iterator_to gives back a valid iterator but the code below
boost::interprocess::scoped_lock<boost::interprocess::named_recursive_mutex> when creating an instance, i need to use the scoped_lock(mutex_type & m, const

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.