Comments (10)
This has been implemented. In fact, any number of alternative namespaces can be
configured next to the default/primary namespace using the GFLAGS_NAMESPACE
CMake variable.
See commit 659b440f of the feature/#83-alternative-namespace branch.
Original comment by [email protected]
on 2 May 2014 at 2:00
- Changed state: Testing
from gflags.
Link to commit:
https://code.google.com/p/gflags/source/detail?r=659b440f9e403c9080eb304efc53b93
8c63cbe47&name=feature/#83-alternative-namespace
Original comment by [email protected]
on 2 May 2014 at 2:02
from gflags.
This branch works well for me; I can link glog to it and I don't have to change
existing code. Please include it in a future release!
Original comment by [email protected]
on 18 May 2014 at 11:17
from gflags.
Hi Carles, thanks for the feedback. I will make another patch release available
soon which hopefully concludes the transition to the new build system
configuration and namespace.
Original comment by [email protected]
on 18 May 2014 at 11:34
from gflags.
Great! Thanks for your work.
Original comment by [email protected]
on 19 May 2014 at 12:08
from gflags.
I'm running into issues compiling glog because of this (running fresh built
2.1.1) - any chance someone could post how I'd set the CMake variable
GFLAGS_NAMESPACE so I can workaround the issue? Or is 2.1.2 release imminent?
Original comment by [email protected]
on 7 Jul 2014 at 6:04
from gflags.
Thanks for bumping it up... soon was meant to be sooner ;)
Regarding the CMake settings of 2.1.1, you will need to change GFLAGS_NAMESPACE
to "google" and make sure that GFLAGS_INCLUDE_DIR is "gflags". See issue #80.
Original comment by [email protected]
on 9 Jul 2014 at 1:19
from gflags.
I've just had a chance to return to this. Not knowing anything about cmake,
I've edited CMakeLists.txt & changed the line
set (GFLAGS_NAMESPACE "${PACKAGE_NAME}" CACHE STRING "C++ namespace
identifier of gflags library.")
to
set (GFLAGS_NAMESPACE "google" CACHE STRING "C++ namespace identifier of
gflags library.")
Then built and installed as per normal instructions. However when I try to
compile glog I get a fail, with the error message
/usr/local/lib/libgflags.a: could not read symbols: Bad value
I guess I'm doing something wrong still...
Original comment by [email protected]
on 26 Jul 2014 at 7:37
from gflags.
For projects that use a system-installed gflags development package this is
still more or less a problem. Since you don't have control of the CMake
GFLAGS_NAMESPACE variable, and the config.h will not be distributed, there's no
way to determine gflags version and namespace.
This could export a define for the namespace, and make sure that ends up in
gflags.h. How about:
#define GFLAGS_NAMESPACE gflags
Original comment by [email protected]
on 3 Nov 2014 at 4:17
from gflags.
Thanks for the suggestion. As a matter of fact, such define was already added
by commit a93de007
(https://code.google.com/p/gflags/source/detail?r=a93de007a65eea5f0eea1eb830788d
bdb7c17112&name=feature/#83-alternative-namespace) in a feature branch.
Original comment by [email protected]
on 9 Nov 2014 at 9:06
from gflags.
Related Issues (20)
- Add ability to have options that can be specified multiple times. HOT 2
- Please put the label 'google' on this project HOT 5
- Warnings in Visual Studio 2010 and unable to compile unit test HOT 10
- Can't locate auto/Autom4te/XFile/msg.al in @INC HOT 2
- How to set kRootDir for FlagValue::CleanName
- Support NuGet package generation for Windows users HOT 1
- @GFLAGS_IS_A_DLL@ expands to empty string in gflags_declare.h HOT 6
- Set INTERFACE_COMPILE_DEFINITIONS of imported gflags library targets to define GFLAGS_DLL_DECL HOT 2
- Google glog fails to compile against gflags HOT 5
- Google glog fails to find gflags/gflags.h when using google namespace HOT 4
- Compilation error on Windows when trying to use the library. HOT 2
- Add library versioning (soname) HOT 6
- Flags always have default value HOT 1
- Bad soname version in current git master HOT 10
- Incorrect makefile generation with cmake HOT 1
- compile problem HOT 5
- Support uint32 as flag type
- ReloadNonCommandFlags needed HOT 2
- FindThreadsCXX error when cross-compiling HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gflags.