https://stackoverflow.com/questions/7092909/implicit-declaration-of-function-basename-in-linux?r=SearchResults 加入<libgen.h>依赖就可以了。 在此做个记录。