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
4
votes
1 answer

How to import gflags in Python webapp (Google App Engine)?

I want to use the Google Calendar API for my Google App Engine webapp. I followed the instructions here (https://developers.google.com/google-apps/calendar/instantiate) for configuring the app, which required that I import gflags. I downloaded…
laurenzlong
  • 2,169
  • 1
  • 13
  • 13
4
votes
2 answers

Process memory increases much faster with gflags +ust

I've got stuck in a problem with gflags when trying to find some memory leaks in a windows app. When I turn on the ust flag (in order to collect memory allocations stack traces) the memory of my application increases much faster than it does when…
David
  • 2,663
  • 3
  • 24
  • 41
4
votes
2 answers

options library like Google GFlags for Haskell

I'm interested in having something very similar to Google's flags library for Haskell. Here is the small introduction to gflags that demonstrates why I love it: http://gflags.googlecode.com/svn/trunk/doc/gflags.html I looked into the various getopt…
errge
  • 309
  • 1
  • 6
3
votes
1 answer

gflags arguments extraction doesn't work on debug mode (C++)

I'm using gflags to parse command line parameters of a c++ application (v140, x64). For some reason, I get different results on Release and Debug mode. In debug mode, the argument is not identified. code #include…
ibezito
  • 5,782
  • 2
  • 22
  • 46
3
votes
2 answers

Generate dumps on first chance exceptions of multiple instances of an application

I would like to generate a dump for first chance exceptions for a specific application that get's launched at random intervals several times a day, running multiple instances at any one time. What have I tried Procdump To use procdump I have to know…
Lieven Keersmaekers
  • 57,207
  • 13
  • 112
  • 146
2
votes
5 answers

new object causes corruption on the heap

I've been struggling with a heap corruption problem for a few days. I was first warned by the vs 2005 debugger that I may have corrupted the heap, after deleting an object I had previously new'ed. Doing research on this problem led me to gflags…
reuscam
  • 1,841
  • 2
  • 18
  • 23
2
votes
1 answer

How to know if a gflag was provided in the command line

I use gFlags in a c++ application, to collect command line flags: DEFINE_string("output_dir", ".", "existing directory to dump output"); int main(int argc, char** argv) { gflags::ParseCommandLineFlags(argc, argv, true); ... } This flag has a…
Curious
  • 2,783
  • 3
  • 29
  • 45
2
votes
0 answers

Multiple definition error using GFLAGS with tcmalloc

~/common/lib/libglog.a(libglog_la-utilities.o): In function `google::LogMessageVoidify::LogMessageVoidify()': ~/glog/glog-0.3.2/src/utilities.cc:80: multiple definition of…
2
votes
0 answers

libgflags invalid, checking gflags viability failed

I try to install folly on redhat 7.2,and i have downloaded gflags source code from github,compile and install. Howerver, Folly installation still faile. Anyone have some ideal? appreciated for your help. ERROR MESSAGE shown below: checking for main…
david gond
  • 51
  • 1
  • 6
2
votes
2 answers

python gflags module help flag doesn't work

I have a problem to use python gflags module in my selenium web test suite. I basically follow the way how the example in gflags github repo. The new flags I defined via DEFINE_string are working. But the default one --help doesn't work. Here is my…
2
votes
0 answers

Caffe Deep Learning build error: "undefined reference to `google::SetVersionString(std::string const&)' "

I'm trying to build Caffe 1.0.0-rc3 on CentOS 6.3. I've tried building Caffe w/both Boost 1.61.0 and Boost 1.5.6 using both GCC 5.2.0 and GCC 4.9.3 and get the same, exact fatal error: CXX/LD -o .build_release/tools/caffe.bin g++…
Will
  • 21
  • 2
2
votes
1 answer

Train Tensorflow model without using command line

I want to call this main(_) function from another Python script without spawning a new process (so that it's easier to debug). However, that function is written to work with command line arguments. What would be the cleanest way call that function…
Fabian
  • 990
  • 3
  • 11
  • 24
2
votes
1 answer

GFlags - command lines

I want to start a process that takes a commandline. Using gflags I want to enable page heap and allow windbg to attach to the process each time it starts. How can I add the commandline parameter in the gflags UI?
dcrearer
  • 1,972
  • 4
  • 24
  • 48
2
votes
1 answer

caffe recompile libgflags.a with -fPIC error

I'm getting an error when I try to install Caffe on Linux Ubuntu 64. The error is as follows: /usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile…
Guilherme
  • 5,143
  • 5
  • 39
  • 60
2
votes
2 answers

libgflags bad value error for caffe

I've linked all the required libraries and the caffee confige ran smoothly. But when I want to make the library I get this error: /usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_32S against `std::basic_string,…
Arturo
  • 3,679
  • 6
  • 34
  • 43