g++ warning: xxx does not declare anything