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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:21:27+00:00 2026-06-12T09:21:27+00:00

I need to use bind and function in my program.But unfortunately vs2010 can’t link

  • 0

I need to use bind and function in my program.But unfortunately vs2010 can’t link my program.
I used following example from boost::bind documentation

#include <boost\bind.hpp>
#include <boost\function.hpp>
#include <functional>

class button
{
 public:

 boost::function<void()> onClick;
};


class player
{
 public:

  void play();
  void stop();
};

button playButton, stopButton;player thePlayer;

void connect()
{
playButton.onClick = boost::bind(&player::play, &thePlayer);
stopButton.onClick = boost::bind(&player::stop, &thePlayer);
}


void main(int argc, char* argv[])
{
connect();
}

Error 1 error LNK2019: unresolved external symbol “public: void __thiscall player::stop(void)” (?stop@player@@QAEXXZ) referenced in function “void __cdecl connect(void)” (?connect@@YAXXZ)

i have tried the newest 32 and 64 verion of BoostPro and followed this tutorial http://www.youtube.com/watch?v=5AmwIwedTCM.All but vs still produces same error…

VS2010 project setting include/lib path
https://dl.dropbox.com/u/47585151/vs.png

however when I turned on

Linker->General->ShowProgress ->For Libraries Searched (/VERBOSE:Lib)

i noticed that VS is searching only for these libraries which are defined in

Linker->Input->Additional Dependencies

http://pastebin.com/BCpEt8Zq

is it possible to check which .lib boost need for boost::bind and boost::function under vs2010?

  • 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-12T09:21:28+00:00Added an answer on June 12, 2026 at 9:21 am

    This problem has nothing to do with any boost library (both are header-only). Try to simply call start and stop from within connect and you should get the same error. Read it carefully, it tells you what is missing.

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

Sidebar

Related Questions

I know we can use bind paste event as below: $('#id').bind('paste', function(e) { alert('pasting!')
Consider the following example: var funcToCall = function() {...}.bind(importantScope); // some time later var
I have installed Matlab r2010a on my computer I need use the function xlsread
So, I need use this event so I can navigate trought blog posts. I
I need to use bind the click event to an element in the DOM
How can i bind and unbind a .delegate in jquery. Say i use this
I have a situation where I need to use jQuery's $.fn.one() function for a
I've not a clear idea about when I have to use the bind() function.
OK, so, I use livequery() to bind a function to the click event of
I need use this method with three distinct classes: Orders, Customers, Suppliers public void

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.