在gflags/gflags_declare.h 中定義了 int32 int64 等類(lèi)型,可以直接使用,不過(guò)編譯時(shí)需要添加 -std=c++11 參數(shù),否則在使用 cstdint 頭文件時(shí)會(huì)報(bào)錯(cuò)。 其它 可以通過(guò) void GetAllFlags(std::vector<CommandLineFlagInfo>* OUTPUT) 接口遍歷所有的參數(shù),更多接口可以查看 gflag
www.dbjr.com.cn/article/2004...htm 2025-6-9