I try compile this code
#include <utility>
#include <stdexcept>
#include <tuple>
#include <typeinfo>
#include <iostream>
int main(int argc, char** argv) {
std::pair<int, int> divide_remainder(int dividend, int divisor);
const auto result (divide_remainder(16, 3));
// auto [fraction, remainder] = divide_remainder(16, 3);
// const auto result (divide_remainder(16, 3));
//std::cout << "16 / 3 is " << result.first << " with a remainder of "
//<< result.second << '\n';
return 0;
}
with that command
g++ -std=c++1z featuresMain.cpp
and get this error
featuresMain.cpp:(.text+0x29): undefined reference to `divide_remainder(int, int)'
Does anyone know why?