struggeling with an undefined reference error