在Win平台上VS编译通过的源码,拿到Linux平台上g++编译报错,这里将我遇到的几个错误整理一下备忘。
1. 找不到 exit()
atoi()
atof()
等标准库函数的声明
报错:
error: 'exit' was not declared in this scope
error: 'atoi' was not declared in this scope
error: 'atof' was not declared in this scope