Linking error not sure why