エラーが出た原因なのですが

#include <fstream>
#include <string>
using namespace std;

bool mygetline(ifstream& ifs, string* s)
{
return getline(ifs, *s);
}

int main()
{
string s;
ifstream ifs("test");
mygetline(ifs, &s);
}

というようにしていたのがいけなかったみたいです。
ifstream バージョンの getline() 関数の実体が置かれる位置が
原因だったと思うんですが、この場合 mygetline() の直前では
なくて main() の直前に置かれるということになるのでしょうか。