I have a problem with following code when I try to link the code on AIX with the gcc compiler version 4.8.3 (you can put between std::chrono):
const auto start = std::chrono::system_clock::now();
// Here you can put any code you like
HOF::filter(cons_numbers, [](int elem) -> bool {
return (elem % 2) == 0;
});
const auto end = std::chrono::system_clock::now();
std::chrono::duration<double> elapsed_seconds = end - start;
std::time_t end_time = std::chrono::system_clock::to_time_t(end);
std::cout << "Finished computation of " << ELEM_COUNT
<< " elements in: " << elapsed_seconds.count() << "s\n";
The response I get from the linker is following:
ld: 0711-317 ERROR: Undefined symbol: .std::chrono::_V2::system_clock::now()
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
The linker has been run with the following parameters:
g++ -maix64 -pthread -mminimal-toc-fpermissive -Wno-write-strings -Winvalid-offsetof -O3 -Wl,-brtl,-bh:5
Aucun commentaire:
Enregistrer un commentaire