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
1
vote
1 answer

Gflags Compile time error

I am trying to compile file which have GFLAGS inside. My compiling command : g++ -I ../eigen-eigen-b9cd8366d4e8/ -I/caffe_path/distribute/include my_file.cpp -std=c++0x -lpthread -lglog -lboost_system -DUSE_OPENCV My error message…
MIRMIX
  • 1,052
  • 2
  • 14
  • 40
1
vote
1 answer

What is the idiom for passing command line arguments to TensorFlow?

Previous versions of TensorFlow used tf.app.flags for command like flags: flags = tf.app.flags FLAGS = flags.FLAGS flags.DEFINE_string('data_dir', '/tmp/data/', 'Directory for storing data') but recent versions now have just import…
orome
  • 45,163
  • 57
  • 202
  • 418
1
vote
0 answers

Simulate CPP heap corruption

There is an old application crashing due to heap corruptions and we want to investigate it. At the moment, dumps are created after every crash but the problem is that heap corruptions do not necessarily crash the application the moment it happens. I…
user5326354
1
vote
1 answer

How do I pass a nested list of integers to Google's command line flags?

How do I pass a nested list of integers to gflags? I can get my code working with something like flags = tf.app.flags FLAGS = flags.FLAGS flags.DEFINE_float('network_nodes', [784, [5, 5, 32], [5, 5, 64], 1200, 10], 'The network structure') But…
orome
  • 45,163
  • 57
  • 202
  • 418
1
vote
1 answer

gflags does not flag any binary

I'm trying to run gflags x64 on my Release x64 binary built by Visual Studio 2013 to detect access violations. I downloaded Windows Debugging Tools from Microsoft website. I added C:\Program Files (x86)\Windows Kits\10\Debuggers\x64 to my PATH…
Richard Dally
  • 1,432
  • 2
  • 21
  • 38
1
vote
1 answer

Gflags and glog compatibility

I wanted to build gflags and glog in my project. Below you see the code. I compiles nearly OK, but due to some compatibility error, I am presented with different fatal errors, depending on which gflags version I try to use in which glog version. As…
katang
  • 2,474
  • 5
  • 24
  • 48
1
vote
1 answer

How to get bash tab completions for your own project with gflags?

I've just starting using gflags for a couple of C++ projects I'm working on. I find that the --help returns a large amount of flags, and I'm currently using myapp --help | less to find the flags I'm looking for. I would love to have tab completion…
Trygve
  • 493
  • 3
  • 15
1
vote
2 answers

Caffe compilation fails: make: *** [.build_release/src/caffe/data_transformer.o] Error 1

I am trying to build caffe after the instructions on http://caffe.berkeleyvision.org/installation.html#prerequisites When compiling i get the following error: (I use Fedora 22) $make all CXX src/caffe/data_transformer.cpp In file included from…
iqopi
  • 141
  • 1
  • 2
1
vote
1 answer

DuplicateFlagError when running Google or-tools TSP constraint solver on multiple graphs

I'm using Google's ortools.constraint_solver to find solutions to the Traveling Salesman Problem. As seen here. Everything works as expected when I run the program on one set of points. Now that I got that working, I'm attempting to solve the TSP…
1
vote
0 answers

Google glog crashes silently on OS X

I am programming a project in C++ on OS X. For various reasons (compatibility, OpenMP, etc.) it has to be compiled using g++. I installed g++-4.9 using homebrew. I would really like to use the google logging library, but I keep getting silent…
HdM
  • 169
  • 1
  • 11
1
vote
1 answer

accessing a list of integer associated with a command line parameter

I'm using gflags in c++ for parsing of command line parameters. I would like to have a command line flag that accepts a list of parameters. For example param in the example below. ./myprog --param 0 1 2 3 How can I access a list of integers…
Tal Darom
  • 1,379
  • 1
  • 8
  • 26
0
votes
0 answers

How do I get glog to use gflags when I'm using them as http_archives?

I have a Bazel WORKSPACE that looks like this: load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "com_github_gflags_gflags", sha256 =…
Bob
  • 1
0
votes
1 answer

How To enable standard page heap verification for all processes in 'WinDbg Preview'

I want to debug one application with some GFLAGS options in 'WinDbg Preview' but I can't find gflags.exe in installation directories. and also I don't want to use windbg legacy for this and wanna switch to 'WinDbg Preview' According to the…
Dev
  • 15
  • 8
0
votes
1 answer

How does DelayFreeSizeMB change the behavior of my application?

I just noticed that my application has a DWORD registry entry named "DelayFreeSizeMB" with a value of 64 in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MyApp.exe What…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
0
votes
1 answer

remote dump analysis - is the "user mode stack trace database" par to the dump file?

If I have a need to analyze memory leaks in a dump from a remote machine and I have enabled the user mode stack trace database as detailed here are those stack traces going to be a part of the dump file or I need to transfer something else from the…
Rudolfs Bundulis
  • 11,636
  • 6
  • 33
  • 71