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
0 answers

Access violation in RtlDebugCreateHeap api on enabling gflags

Debugging on a Windows Server 2016 Standard version 1607. Launched a process from windbg 10.0.19041.685 and set the below gflags: 0:038> !gflag 0x020011f0 New NtGlobalFlag contents: 0x020011f0 htc - Enable heap tail checking hfc - Enable…
0
votes
1 answer

How to pass google command line flags as an argument to GDB

I understand that to pass an argument to a gdb program I can run r arg1 arg2 arg3 But I want to pass a GFLAG which has a name associated with an argument. Something like r arg1="hi" arg2="there"
user3828311
  • 907
  • 4
  • 11
  • 20
0
votes
2 answers

Passing shell variables containing whitespace as argument

I have a dynamic path in the variable DATASET_CONFIG This is a small code to demonstrate the problem SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd…
evgeni fotia
  • 4,650
  • 3
  • 16
  • 34
0
votes
1 answer

gflags full page heap seems not effective?

Help me!! I am really worrying about this problem, It's about my tomorrow's homework. I use gflags /p /enable AcroRd32.exe /full to enable AcroRd32.exe with full page,however it doesn't work. AS the following photo showing: in the same page there…
peng xu
  • 385
  • 1
  • 3
  • 6
0
votes
1 answer

c++ Makefile compiling-gflags

I am having trouble compiling using a makefile and including gflags. I have not done Makefiles in a while. The compile error I am getting is related to gflags This is my makefile: CXX = g++ CPPFlags = -g -Wall -std=c++11 LDLIBS = -lgflags pa1:…
0
votes
1 answer

Can I change the script bellow(tf.app.run()) to work in Jupyter notebook without error?

My main doubt if I can easly convert this script to run in a Jupyter notebook whithout have this error. The function tf.app.run() provide a wrapper that handles flag parsing. But looks like the tensorflow code forcefully exits the process in which…
Andre Araujo
  • 2,348
  • 2
  • 27
  • 41
0
votes
1 answer

Trying to Compile Carabiner on windows using Powershell and MinGW MSYS. Having a gflags error in pthreads_rwlock_t

From the beginning. I want to compile for windows a tiny program called Carabiner aquired from this git repository: Carabiner Git It requires 2 main dependencies gflags and LiveLink. Not getting bogged down on what this program does, the…
Robbie Miller
  • 35
  • 1
  • 8
0
votes
1 answer

Access changed gflag value

I have two (2) scripts as follows: test.py from google.apputils import app import gflags FLAGS = gflags.FLAGS gflags.DEFINE_string('flag1', 'Value 1', 'flag#1') def main(argv): FLAGS.flag1 = "Value2" print 'Flag 1 has value: ' +…
0
votes
1 answer

Compiling caffe causing undefined references with google namespace

I had problems with my code which was causing errors because of gflags. So i decided to play with gflags repositories and linkings manually which seems that was a bad idea. Now I even cannot compile caffe. While making it all this following…
MIRMIX
  • 1,052
  • 2
  • 14
  • 40
0
votes
1 answer

Getting UnparsedFlagAccessError when trying to import glog in python

I am trying to use glog in my python code and when I am trying to import, it throws the following error: /usr/local/lib/python2.7/dist-packages/glog.py:171: RuntimeWarning: Trying to access flag verbosity before flags were parsed. This will raise…
jpsagarm95
  • 1
  • 1
  • 4
0
votes
1 answer

Alternative to GFLAG.exe or registry setting

To get the crash-dump i used the below registry setting for windows 7 machine also tried gflags.exe. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps] "DumpFolder"=hex(2):[path goes here in hex…
GAP
  • 395
  • 1
  • 5
  • 18
0
votes
0 answers

Missing header file when CMake-ing glog

I wanted to use logging in my app. In the CMake file I made (the relevant part see below) for a while everything runs smoothly, gflags seems to be installed OK. However, when compiling glog, I receive the error message: fatal error: …
katang
  • 2,474
  • 5
  • 24
  • 48
0
votes
1 answer

Google gflags library in visual studio: Can't inspect FLAGS_ variables

I have built google gflags in windows using visual studio 2015. The built is a Debug build (so Program Database (/Zi) is set) and I'm stepping through the gflags_unittest_main.cc. The unit test passes successfully. However, while debugging I can't…
martinako
  • 2,690
  • 1
  • 25
  • 44
0
votes
2 answers

How to set a default value to flagfile in gflags?

I set flagfile like this: DECLARE_string(flagfile); int main(int argc, char** argv) { FLAGS_flagfile = "./conf/default.conf" ParseCommandLineFlags(&argc, &argv, true); .... } then change flagfile by command line ./main…
qincpp
  • 3
  • 2
0
votes
1 answer

glog doesn't compile on Ubuntu 12.04

I tried to install "glog" but when I hit "make" the compilation fails with the following Error message: src/logging_unittest.cc:1206:1: error: ‘FlagSaver’ was not declared in this scope src/logging_unittest.cc:1206:1: note: suggested …
mcExchange
  • 6,154
  • 12
  • 57
  • 103