Boost logo

Boost Users :

Subject: Re: [Boost-users] Thread ID
From: Igor R (boost.lists_at_[hidden])
Date: 2010-07-07 11:23:50


> I dont' work with boost threads, so I try to read the thread id with boost::thread::get_id().

Look at thread::native_handle() member function.

> Compiling works, but on linking I get the error "that boost threads can't linking", but I don't have any library like "boost
> thread" ? Should I compile the library like the iostream lib?

Yes, you have to build Boost.Thread library.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net