undefined reference, wrong function name