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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:22:29+00:00 2026-05-17T23:22:29+00:00

I think i’m getting crazy, im trying to compile a simple project to understand

  • 0

I think i’m getting crazy, im trying to compile a simple project to understand how to work with io_service and I cant compile it.

#include <iostream>
#include <boost/asio.hpp>
#include <boost/bind.hpp>

class testClass
{
    unsigned int other_number;
    unsigned int main_number;
    boost::asio::io_service& io_serv;
public:
    testClass(boost::asio::io_service& io) : other_number(0), io_serv(io), main_number(0){io_serv.post(boost::bind(&testClass::printNumbers, this));}
    void changeNumber(int num)  
    {
        io_serv.post(boost::bind(&testClass::doChangeNumber, this, num));
    }

private:
    void doChangeNumber(int num)
    {
        main_number = num;
    }
    void printNumbers()
    {
        std::cout<<"Main number is: "<<main_number<<" Other number is:"<<other_number<<std::endl;
        other_number++;
        Sleep(1000);
        io_serv.post(boost::bind(&testClass::printNumbers, this));
    }
};

void main()
{
    boost::asio::io_service io_serv;
    testClass tc(io_serv);
    io_serv.run();
    int num = 0;
    while (true)
    {
        tc.changeNumber(num++);
        Sleep(2000);
    }
}

I did add in “project property->c/c++->general->additional include directories” the line: "C:\Program Files (x86)\boost_1_44_0";

And I did add in “project property->linker->additional library directories” the line: "C:\Program Files (x86)\boost_1_44_0\libs";
but nothing seems to work…
I’m using visual studio 2010..
there are no .lib files in boost_1_44_0\libs… I downloaded it 2 times from boost’s site just to make sure..

no matter what I do, I always get LINK : fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_44.lib'

  • 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-17T23:22:29+00:00Added an answer on May 17, 2026 at 11:22 pm

    You can build the Boost libs on your local system using bjam as described here (Section 5.2). Once you have done that you should be good to go – use this from a Visual Studio command prompt and make sure your project has the correct LIB path.

    The prebuilt libs will only be there by default if you use the installer from Boost Pro Computing, I believe.

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

Sidebar

Related Questions

I think most people here understand the importance of fully automated builds. The problem
I think the file that is produced is an .asm file, any idea how
I think most people know how to do this via the GUI (right click
I think this is specific to IE 6.0 but... In JavaScript I add a
I think it can be done by applying the transformation matrix of the scenegraph
I think that java executables (jar files) are trivial to decompile and get the
I think I've got it down to the most basic case: int main(int argc,
I think I know how to handle this case, but I just want to
I think title should be good enough.
I think this is a multi-part question, so bear with me. Currently all of

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.