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

  • SEARCH
  • Home
  • 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 7530039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:48:05+00:00 2026-05-30T04:48:05+00:00

I just installed Boost on my machine. I’m working with the Visual Studio 2010

  • 0

I just installed Boost on my machine. I’m working with the Visual Studio 2010 Ultimate. To install Boost I followed the instruction here: http://www.boost.org/doc/libs/1_48_0/more/getting_started/windows.html. In particular this line: “The installers supplied by BoostPro Computing will download and install pre-compiled binaries into the lib\ subdirectory of the boost root”. So I found I have boost_1_47 now running on my machine. And I started a little test program, to play with the boost::thread library. However this code which is the FIRST example code on the introduction to boost::thread won’t compile:

#include <boost/thread.hpp>


    boost::thread make_thread();

    void f()
    {
        boost::thread some_thread = make_thread();
        some_thread.join();
    }


    int main()
    {
        f();
        return 0;
    }

This is the error message:

error LNK2019: unresolved external symbol "class boost::thread __cdecl make_thread(void)" (?make_thread@@YA?AVthread@boost@@XZ) referenced in function "void __cdecl f(void)" (?f@@YAXXZ)

However this code compiles:

#include <boost/thread.hpp>

void testFunction()
{

}

int main()
{
    boost::thread_group group;
    group.create_thread(&testFunction);
    group.join_all();    

    return 0;
}

The above code I copy/pasted from some forum entry. But what is the reason for all this? Is make_thread() not supported by version 47? If so, why does only the linker complain then? What am I missing?

EDIT:

My apologies for having asked this question, I find it hard to admit, but this belongs to the category RTFM. But however stumbles about this: read the answers below.

  • 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-05-30T04:48:07+00:00Added an answer on May 30, 2026 at 4:48 am

    After a quick search on Google, and reading the documentation about thread management, it seems to me that the function make_thread is just a dummy function used in an example to show that threads can be moved between different thread objects.

    If you want a specific function that creates a thread, you have to make it yourself.

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

Sidebar

Related Questions

I just installed boost 1.42.0 from macports using sudo port install boost . Everything
I have just installed boost for the first time on my Intel Mac, and
Just installed and migrated a 2008 solution on Vista ultimate 64 and .net 4.0.
I just installed Glassfish V2 on my local machine just to play around with
I just installed 'Visual C# 2008 Express Edition' and 'Visual Web Developer 2008 Express
I just installed the boost library on Linux and written a sample application :
I just started writing a small application in C++ using Visual Studio C++ 2008
I currently have a laptop with a 5400rpm drive. It has visual studio installed
What have I done? I'm using Microsoft Visual Studio 2010 1) I downloaded libevent-2.0.16-stable
I just built and installed boost on cygwin and was trying to compile a

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.