Questions tagged [abseil]

Abseil is an open-source utility library available for the Python and C++ languages, maintained and released by Google. The code comes from Google's own code base and existing projects. When using this tag, also include a tag indicating the language in which you are using Abseil utilities (Python or C++).

Abseil's C++ libraries are culled from utilities in Google's internal codebase. Abseil's Python libraries replace the no-longer-maintained google-apputils Python module, which contained useful Python utilities.

Links

  • Github repo for Abseil Common Libraries in C++: abseil-cpp
  • Github repo for Abseil Common Libraries in Python: abseil-py
  • Github organization for Abseil: abseil

The documentation will eventually be at abseil.io but there is currently no documentation available.

59 questions
0
votes
1 answer

What is the idiomatic way to export a 3rd party static library dependency in CMake?

I have the following reduced CMake code for using Abseil in a library: (minimal repository to reproduce) cmake_minimum_required(VERSION 3.20) project(MyProject) set(CMAKE_MODULE_PATH…
typesanitizer
  • 2,505
  • 1
  • 20
  • 44
0
votes
0 answers

absl::StrFormat - no instance of function template matches the argument list

When using absl::StrFormat, I'm getting static code analysis warnings in VisualStudio 2017 (Red underlines). My code builds and runs but I can't figure out why I'm getting this warning. What could be causing this and is there anything I can do to…
J'e
  • 3,014
  • 4
  • 31
  • 55
0
votes
1 answer

Select a random (ish) element in an abseil::node_hash_map?

Is it possible to select efficiently a somewhat random element in abseil::node_hash_map, or more generally any abseil map? For example, I'd be happy with an approach that selected a slot at random, then found the next occupied slot and chose a…
BeeOnRope
  • 60,350
  • 16
  • 207
  • 386
0
votes
1 answer

Cocoapods header conflict between libopus and abseil

I have an Xcode project with the following Podfile : pod '!ProtoCompiler-gRPCPlugin', '~> 1.33' pod 'gRPC', '~> 1.33' pod 'libopus' The issue is that since GRPC decide to use Abseil as a dependency, a weird conflict is happening. When compiling, I…
Alexis C.
  • 4,898
  • 1
  • 31
  • 43
0
votes
1 answer

C++ Google test aborts on Ubuntu calling Notify() multiple times on Notification object

i use google test and google mock. There is a mock object on which i expect a method call OnConnectionError() which notifies the absl::Notification object done 3 times. absl::Notification done; EXPECT_CALL(*client,…
0
votes
0 answers

Build Peerconnection with WebRTC static library failed

I met some issues when I wanted to build the peerconnection example with linking Webrtc as a static library. My build environment and the target are both ubuntu 18.04, and I used the Github repo https://github.com/vsimon/webrtcbuilds to build…
alexunder
  • 2,793
  • 3
  • 15
  • 18
0
votes
2 answers

Firestore build error in abseil with Swift and Cocoapods

I have a swift project that is using Firestore. There is a build issue when compiling the abseil pod that is included by Firestore. When I attempt to build the project, I intermittently get this error: absl/base/internal/inline_variable.h file…
DCG
  • 181
  • 9
0
votes
1 answer

Can glog (c++) print line number in its stacktrace?

glog (c++)'s failure signal handler can print stacktrace on segfault etc (see here). Can the stacktrace include line number as well? Edit: Even if I use LOG(FATAL), the stacktrace does not have line number. *** Check failure stack trace: *** @ …
bill
  • 650
  • 8
  • 17
0
votes
1 answer

build abseil on windows using bazel

im trying to build abseil on windows using bazel, the version im trying to build is : abseil-cpp-20181200 im using the next bazel command: bazel build im getting this output: INFO: Invocation ID:…
0
votes
1 answer

Where does this absl::StrCat bug occur, in Abseil or MSVC?

I creat string_view from char array // creat sv from vector; std::vector vec = { 'w', 'h', 'a', 't' }; char* char_ptr = vec.data(); size_t sz = vec.size(); std::string_view sview_obj = std::string_view(char_ptr, sz); If you write: …
sandthorn
  • 2,770
  • 1
  • 15
  • 59
0
votes
1 answer

Load TensorFlow FLAGS from file (TF version > 1.4)

I would like to store FLAGS (tf.app.flags.FLAGS) in a file and reload them later. Until TensorFlow 1.4, I used this code for reloading: with open(config_file, 'r') as f: config = json.load(f) FLAGS.__flags.update(config) From TensorFlow…
stecklin
  • 131
  • 7
0
votes
1 answer

Can Bazel use multiple WORKSPACE files?

Say I'm using a specific CROSSTOOL + toolchain, such as this one, and I want to compile a 3rd party lib such as abseil using that toolchain. Is it possible to do so without modifying the 3rd party lib's WORKSPACE? If I must modify the workspace,…
Mark
  • 1,035
  • 2
  • 11
  • 24
-1
votes
1 answer

mac grpc cpp abseil installation errors

Tried to install as per grpc quickstart page. Installation of gRPC itself was fine but third-party/abseil-cpp is giving lot of errors ("make -j" step): #error "C++ versions less than C++11 are not…
coder
  • 39
  • 6
-2
votes
0 answers

C PLUS PLUS Project Linking protobuf static library comes out error LNK 2001

Protobuf Version : 4.22.2 CMake Version : 3.27.0 C++ Complier version : MSVC 19.36.32537.0 My English is poor, so I hope you will be patient to read it, please. I compile protobuf to static library and link it to my project, but always come out…
1 2 3
4