Compiles but weird linking(?} error