Boost logo

Threads-Devel :

Subject: [Threads-devel] boost::this_thread::at_thread_exit - linker issue
From: Peter Thiess (pthiess_at_[hidden])
Date: 2009-04-29 05:55:25


Hi everyone,

I just started to play around with boost threads a bit and got stuck with the following linker message:

DQThread.obj : error LNK2001: unresolved external symbol "void __cdecl boost::detail::add_thread_exit_function(struct boost::detail::thread_exit_function_base *)" (?add_thread_exit_function_at_detail@boost@@YAXPAUthread_exit_function_base_at_12@@Z)

I'm using the following code line:
boost::this_thread::at_thread_exit(&DQThread::OnErrorExit);

which compiles fine. Searching the libraries I couldn't find 'add_thread_exit_function' either. I wonder if it is exported at all? What am I missing? I'd be really greateful for any hints in this regard :)

Peter :)

---
Peter Thiess, Lead Software Engineer
Adobe Systems Engineering GmbH
Grosse Elbstrasse 27
22767 Hamburg, Germany
+49 40 306 36 214
pthiess_at_[hidden]<mailto:pthiess_at_[hidden]>
Registergericht: Hamburg HRB 745 37
Geschäftsführer: Thomas Mührke


Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk