Bug#715003: g++-4.7: missing symbol: std::chrono::steady_clock::now()
Package: g++-4.7
Version: 4.7.3-4
Severity: normal
Dear Maintainer,
$ cat ~/main.cc
#include <chrono>
#include <iostream>
int main() {
auto start = std::chrono::steady_clock::now();
std::cout << "Hello World\n";
auto end = std::chrono::steady_clock::now();
std::cout << "Printing took "
// duration_cast is required to avoid accidentally losing precision.
<< std::chrono::duration_cast<std::chrono::microseconds>(end - start).count()
<< "us.\n";
}
$ g++ -std=gnu++11 main.cc
/tmp/cc0oJ2e2.o: In function `main':
main.cc:(.text+0xa): undefined reference to `std::chrono::steady_clock::now()'
This program used to compile until around ca. a month ago.
It compiles fine with g++-4.8
It compiles fine on an Ubuntu 13.04 with g++-4.7
-- System Information:
Debian Release: jessie/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages g++-4.7 depends on:
ii gcc-4.7 4.7.3-4
ii gcc-4.7-base 4.7.3-4
ii libc6 2.17-6
ii libcloog-ppl1 0.16.1-3
ii libgmp10 2:5.1.2+dfsg-1
ii libgmpxx4ldbl 2:5.1.2+dfsg-1
ii libmpc3 1.0.1-1
ii libmpfr4 3.1.1-1
ii libppl-c4 1:1.0-7
ii libppl12 1:1.0-7
ii libstdc++6-4.7-dev 4.7.3-4
ii zlib1g 1:1.2.8.dfsg-1
g++-4.7 recommends no packages.
Versions of packages g++-4.7 suggests:
pn g++-4.7-multilib <none>
pn gcc-4.7-doc <none>
pn libstdc++6-4.7-dbg <none>
-- no debconf information
Reply to: