As part of a larger program I've started writing some stubs of a few functions, but even before I've filled in these stubs I'm already getting an undefined reference error:
main.cpp:line 17: undefined reference to encrypt(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)
collect2: ld returned 1 exit status
I've checked that string is defined, my namespaces are the same, the #include's match the header file, the function names and parameter lists match the header file, but the error is still happening.
I can't figure out what is causing this. Can somebody help me? I'd really like to get on with this. (It's something obvious that I've overlooked, isn't it?)