65 questions
Score of 1
1 answer
297 views
Minimal example in Compiler Explorer (GodBolt.org) using the Abseil library
I'm trying to set up such a minimal project using the library, but no matter what I try I can't import it:
#include <iostream>
#include "absl/time/clock.h"
int main() {
std::cout ...
Score of 0
1 answer
282 views
build gRPC++ with only C++11 and no Absl
I am trying to use protobufs and gRPC on a legacy system that runs Ubuntu 14.04 and C++11, and that can't be updated.
I have tried building gRPC v1.46.7 (the newest version that does not require C++14 ...
Score of 2
1 answer
95 views
What is the best practice to use flag in multiple methods inside a class?
I'm new to C++. I have a code similar to this:
//static
absl::optional<bool> someFunc() {
if(absl::getFlag(FLAG_is_real) < absl::now())
// do something...
return true;
}
//...
Score of 0
2 answers
2516 views
How to build Abseil and use it as part of a CMake project
The instructions for Abseil (abseil-cpp) describe how to clone the git repository and build the Abseil libraies.
https://abseil.io/docs/cpp/quickstart-cmake
The instructions go on to describe how to ...
Score of -2
1 answer
861 views
I am getting Xcode abseil undefined symbol error
Flutter iOS Build Issue: Undefined Symbols Error in Xcode
I successfully developed a Flutter app on my Windows PC, where it works perfectly on Android devices. Now, I want to run and compile the app ...
Score of 0
0 answers
401 views
absl::Log Initialization in DLL Fails When Called Using ctypes on Windows
I am developing a dynamic library using C++ and utilizing ctypes in Python to call functions from this library. When I try to initialize absl::Log within the DLL, I encounter the following error:
...
Score of 0
0 answers
1109 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 ...
Score of 0
1 answer
454 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 ...
Score of 1
1 answer
1251 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 ...
Score of 1
1 answer
755 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....
Score of 0
0 answers
948 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 ...
Score of 1
1 answer
1891 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 ...
Score of 1
0 answers
305 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 ...
Score of 1
0 answers
319 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 ...
Score of 7
2 answers
4532 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....