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
60
questions
0
votes
0
answers
81
views
i have trouble in building abseil using vcpkg
Iam trying to build aseil for MSVC17. the build is not generated corectly.
I have tried by reinstalling the VCPKG package manager and also check for log files. I thought proving the error logs would ...
0
votes
0
answers
41
views
Building a static library that builds gRPC as submodule with cmake
I am building a static library (say, libsdk), and I am using gRPC as a submodule that is built (using add_subdirectory).
I am able to build gRPC and my libsdk into a single static library (libsdk.a), ...
0
votes
1
answer
57
views
CMake - Unable to link properly against abseil on MacOS
I have build and installed abseil from source like this:
cd ./abseil-cpp
git checkout 5dd240724366295970c613ed23d0092bcf392f18
mkdir build
cd ./build
cmake -DCMAKE_CXX_STANDARD=17 ..
make -j 4
sudo ...
1
vote
1
answer
211
views
How do we use abseil without CMake?
I have a C++ project where I need to use abseil strings library and abseil status library. However my project is large and is not using cmake at present, rather only a Makefile instead.
I have tried ...
1
vote
1
answer
218
views
Abseil LOG output printed twice in Qt Creator
I have created a simple project which uses Abseil and is built and run inside of Qt Creator.
When I use any abseil logging, I see the output twice in the Qt Creator "Application Output" pane....
0
votes
0
answers
431
views
Error when linking an application against a library using GRPC
I have an application that link against another library that uses GRPC. If I use make I can link it using pkg-config --libs protobuf grpc++ grpc and it works. But I am upgrading to cmake (in addition ...
1
vote
1
answer
988
views
I can't use protobuf on arch linux
I'm learning to use protobuf, so I tried the official example from v23.4.
At the first time, I'm using the system package manager pacman to install protobuf, here's my version:
sudo pacman -Q ...
1
vote
0
answers
197
views
Can't use abseil with libtorch, build failed
If i use abseil and libtorch together, and use the function like StrAppend, the build will fail and give errors like
undefined reference to `absl::StrCat(absl::AlphaNum const&, absl::AlphaNum ...
1
vote
0
answers
241
views
Multiprocessing in OpenAI Gym with abseil
I am struggling with multiprocessing in OpenAI Gym with the abseil library. Basically, the gym.make seems working. However, I am trying to use gym-super-mario-bros which is not working. Below is a ...
2
votes
0
answers
2k
views
How do I properly link the Google Protocol Buffers library with my application at compilation?
I am following the tutorial listed here on Protobuf's website. I copied the sample addressbook.proto and compiled it using the line
protoc --cpp_out=. addressbook.proto
Which produced addressbook.pb....
2
votes
1
answer
969
views
absl::flat_hash_map: efficient way to implement `remove_if`
Is there an efficient way to implement remove_if for absl::flat_hash_map?
It is my understanding that absl::flat_hash_map doesn't return the iterator to the next element, which is generally used for ...
2
votes
1
answer
319
views
Why can gdb not find element access functions in `absl::flat_hash_map`?
Problem
I'm trying to debug a program that uses absl::flat_hash_map. However, gdb doesn't find operator[] or .find() for some reason. Why doesn't it find these methods? Is there some workaround?
I ...
1
vote
1
answer
2k
views
undefined reference when linking libgrpc.a when building with -std=c++11
We were using grpc 1.15.0 for long time and linked to application compiled with C++11.
We try to upgrade grpc to 1.46.5 (base on documentation gRPC C++ 1.46 will be the last release supporting C++11)
...
0
votes
0
answers
630
views
grpc compile error about abseil-cpp “I no found"
I want to compile grpc in arm linux. After downloading the github file and transfering to server, I cd grpc and make. It shows error about abseil-cpp, but when entering abseil-cpp directory and ...
1
vote
2
answers
208
views
how is 128 bit integer formed in abseil library?
In Abseil library absl::uint128 big = absl::MakeUint128(1, 0);
this represents 2^64 , but i don't understand what does '1' and '0' mean here.
Can someone explain me how the number is actually formed ?