无法解析的外部符号 SDL_main 这时,其实是main函数定义与sdl库里的不一样,比如: int main() 这时编译时,就会出现上面的出错。需要修改为这样: int main(int argc, char *argv[])