Bug#763369: g++-4.9: Linker failure when using str::thread

2014-11-05 Thread Ralf Jung
Hi, >> $ g++ -std=c++11 threadtest.cpp -o threadtest >> /tmp/cc2mc1l4.o: In function `std::thread::thread(void (*&&)())': >> threadtest.cpp:(.text._ZNSt6threadC2IPFvvEIEEEOT_DpOT0_[_ZNSt6threadC5IPFvvEIEEEOT_DpOT0_]+0x1e): >> undefined reference to `pthread_create' >> collect2: error: ld returned

Bug#763369: g++-4.9: Linker failure when using str::thread

2014-09-29 Thread Ralf Jung
Package: g++-4.9 Version: 4.9.1-15 Severity: normal Dear Maintainer, when compiling a C++11 program that uses std::thread, I get the following linker failure: $ g++ -std=c++11 threadtest.cpp -o threadtest /tmp/cc2mc1l4.o: In function `std::thread::thread(void (*&&)())': threadtest.cpp:(.text._ZN