Questions tagged [gflags]

Gflags is a commandline flags library used within Google. The commandline flags are specified by users on the command line when they run an executable.

Typically, an application lists what flags the user is allowed to pass in, and what arguments they take -- in this example, -l takes no argument, and -f takes a string (in particular, a filename) as an argument. Users can use a library to help parse the commandline and store the flags in some data structure.

86 questions
0
votes
1 answer

Usage of FLAGS_nono##name in gflags source code

I'm reading gflags's source code recently. And the comment here really confuses me. It's saying FLAGS_nono##name is introduced to ensure static initialization. But as far as I know, if you define a global var like: int x = 20; x is still statically…
Zhaoloving
  • 98
  • 1
  • 5
0
votes
1 answer

flag not set in python-gflags

How am I misusing gflags in this example? Setting the flag on the command line doesn't override the default value, but when I set the flag as required and don't use a default value (the commented code), it gets set (to False) just fine. import…
Rose Perrone
  • 61,572
  • 58
  • 208
  • 243
0
votes
2 answers

unknown command line flag 'logtostderr'

I am running this SIFT program at this site: https://github.com/sanchom/sjm All the stuffs go well until I run my program: $ python extract_caltech.py --dataset_path=[path_to_your_101_Categories_directory] \ --process_limit [num_processes_to_spawn]…
Phong Nguyen
  • 51
  • 2
  • 8
0
votes
1 answer

Error when compiling Glog

I got an issue when compiling glog by running 'make' after running './configure' Then I got an error: Undefined symbols for architecture x86_64: "testing::internal::StrStreamToString(std::__1::basic_stringstream, std::__1::allocator >)",…
Phong Nguyen
  • 51
  • 2
  • 8
0
votes
1 answer

My app runs very slow after using debugging tools

I was trying to debug a heap corruption issue in our app, and used appverifier, gflags and _CrtSetDbgFlag to try and track it down. now i've cleared the gflags, removed our app from app verifier and removed _CrtSetDbgFlag, yet on my computer now…
John C
  • 611
  • 1
  • 9
  • 26
0
votes
2 answers

Why sometimes people prefer strtoll to strtol even they only want to convert a string to an int32?

Here is the code snippet I read from google's gflags source code case FV_INT32: { const int64 r = strto64(value, &end, base); if (errno || end != value + strlen(value)) return false; // bad parse if (static_cast(r) != r) // worked,…
coinsyx
  • 643
  • 2
  • 7
  • 13
0
votes
1 answer

cmake: How to include another project generated header

gflags had cmake-migration branch, it will genrate header in ${buildir}/include, how can i include the genrated header? Is there a var liked gflags_generated_headers? Thanks!
HenryLee
  • 3
  • 2
0
votes
3 answers

How to make google flags ignore unknown command line flags?

I'm using google flags for command line parsing. It's a wonderful tool, but somehow I need it to ignore unknown flags instead of print a line of ERROR: unknown command line flag ... Is there anyway to do it?
Ralph Zhang
  • 5,015
  • 5
  • 30
  • 40
-1
votes
1 answer

gflags and localhost in GAE

I'm trying to use arguments from the console to use the --auth_local_webserver, --auth_host_port, this ones are required to get credentials from OAUTH2, but I can't make it work I'm using the console this way python google\dev_appserver.py…
-1
votes
1 answer

google-app-engine : Import works only after a refresh

After somes problems with a simple import of httplib2 (see my post here), i meet a different problem with the import of gflags. In fact, on dev server, i have an ImportError the first time that I lanch the apps. But, if i refresh the browser, the…
Yohann
  • 6,047
  • 3
  • 26
  • 33
-3
votes
1 answer

GFlags Stop on hung GUI

Today I was wondering why the GFlags option Stop on hung GUI appears in the Kernel Flags tab of the GFlags user interface. Does the kernel have a GUI which could hang? So I tried to get some information from Microsoft, but MSDN just says: The Stop…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
1 2 3 4 5
6