zhifu gao
2024-01-26 65396eeeff96cdc21f939828e13a2e3d0127f2c6
1
2
3
4
5
6
7
8
9
10
11
12
#include <gflags/gflags.h>
 
DEFINE_string(message, "", "The message to print");
void print_message(); // in gflags_declare_flags.cc
 
int main(int argc, char **argv)
{
  GFLAGS_NAMESPACE::SetUsageMessage("Test compilation and use of gflags_declare.h");
  GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, true);
  print_message();
  return 0;
}