I have a function called MyFunc which is declared like this
void MyFunc(const std::vector<std::uint64_t> &data);
I am calling MyFunc from somewhere else.
void ParentFunc(const std::vector<std::uint64_t> &data)
{
....
MyFunc(data);
....
}
However, the above code (where I am calling MyFunc) is resulting in compilation error with a message that reads undefined reference to `MyFunc(std::vector<unsigned long, std::allocator > const&)'
I don't understand why it is looking for an argument of type std::vector<unsigned long, std::allocator >. Where is the std::allocator coming from, and more importantly, what can I do to fix this error?
I am using g++ 7 as compiler.