libstdc++ Questions

7

There is an associated container in C++ which is actually a set (multiset) which can give the order of an element in it in. Here is how I use the container: #include <bits/stdc++.h> #includ...
Joubert asked 14/1, 2020 at 10:30

10

Solved

I updated my GCC compiler from the GIT repo to version 11. Now my test code (GoogleTest/GoogleMock) is complaining about GLIBCXX_3.4.29 not being found. This is not a duplicate please reopen The an...
Jestude asked 17/12, 2020 at 23:39

6

I recently updated my gcc version on CentOS from 4.7 to 5.4, but now I am getting the following error when I compile my program /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found I found ...
Damnify asked 26/5, 2017 at 15:55

4

Solved

I'm trying to use someone else's Makefile to complile a very simple c++ library. The makefile is as follows: JNIFLAGS=-O2 -pthread -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/inclu...
Frontpage asked 18/1, 2010 at 12:49

2

I am using Python3 and Tensorflow 1.15 on Apache server CentOS6. Now, I am Struggling with this error. It requires GLIBCXX_3.4.17 ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.17...
Aerogram asked 26/1, 2020 at 18:7

2

Solved

I have the following code: #include <iostream> #include <random> int main() { std::mt19937_64 rng(std::random_device{}()); std::cout << std::uniform_int_distribution<>(0...
Stabilizer asked 4/5, 2016 at 15:40

1

I'm using clang 10 and gcc 9 on Ubuntu 20.04. Taking this following sample program: #include <cstdio> #include <any> int main(int argc, char* argv[]) { std::any v = argc; printf(&quo...
Ideatum asked 24/4, 2022 at 18:13

5

Solved

In C library math.h, there was a sincos function which was pretty efficient, because it computed both sine and cosine in a time closer to a single call to sin() or cos() than to the total time of c...
Fastigium asked 20/6, 2014 at 13:14

2

Solved

It's well known that glibc (and, as far as I know, glibstd++ also) uses symbol versioning mechanism. (For the details refer: How can I link to a specific glibc version.) The question is how to det...
Woodrum asked 8/8, 2010 at 20:50

2

Solved

I'm trying to get the R package reticulate working on a CentOS 7.8 system using RStudio Server v1.2.5042 with a custom environment created with conda. When I initiate a Python job with reticulate, ...
Chaplain asked 1/9, 2020 at 18:34

1

Solved

I noticed something in the internally implemented std::find that perplexed me; why did they do that? std::find(begin,end,...) Assume this line , so in the internal implementation in the file stl_al...
Peracid asked 14/2, 2023 at 8:34

2

I am running an application and it throws me an error saying: "C++ header 'string_view' is required. You need to install a newer libstdc++ on the host system." Can someone guide me on wha...
Remonstrate asked 9/2, 2021 at 2:2

1

Solved

So far it seems to me that including almost any libstdc++ header in a C++ module interface causes compile errors on clang 14.0.0 and the libstdc++ that comes bundled with GCC 11.2.0. I wonder if I ...
Ardie asked 24/4, 2022 at 10:44

1

Solved

I recently came across a weird double-free bug in a program when capturing a shared_ptr in a lambda. I was able to reduce it this the following minimal example: #include <memory> #include &lt...
Gertrudgertruda asked 15/10, 2022 at 14:12

2

I am trying to build open embedded project. But it shows some error like /usr/lib/x86_64-linux-gnu/libstdc++.so.6: GLIBCXX_3.4.26 not found How can i install GLIBCXX_3.4.26 in Ubuntu 16.04 ?
Carlyncarlynn asked 5/10, 2018 at 10:12

2

I have a couple of questions. 1) What is libc++ and libstdc++ ? 2) What is the difference between them ? 3) Are they interchangeable ? 4) Is it something a compiler should implement ? 5) When ...
Ardellaardelle asked 18/11, 2016 at 11:39

3

Solved

I'm using clang++ 10 on Ubuntu 20.04 LTS, with -fsanitize-undefined-trap-on-error -fsanitize=address,undefined,nullability,implicit-integer-truncation,implicit-integer-arithmetic-value-change,impli...
Singspiel asked 28/7, 2022 at 18:55

1

I've been looking at libstdc++ headers for a few years now, and I was always surprised about how weirdly it mixes tabs and spaces, e.g. something like: template<typename _Up, typename... ...
Vindictive asked 12/5, 2022 at 18:53

2

I'm trying to link the output of C++ using ld and not g++. I'm only doing this to learn how to do it, not for practical purposes, so please don't suggest just to do it with g++. Looking at this qu...
Defray asked 4/1, 2013 at 19:1

1

Solved

On upgrading to Ubuntu 22.04 (amd64), I have noticed that the following code has started to give the result 1.4375 instead of the expected value 1472: #include <charconv> #include <iostrea...
Poetess asked 30/4, 2022 at 13:33

2

I was trying to load Seurat package in rstudio and got this error Error: package or namespace load failed for ‘Seurat’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/wda...
Piggott asked 22/9, 2021 at 17:9

1

Solved

From https://github.com/gcc-mirror/gcc/commit/3acb929cc0beb79e6f4005eb22ee88b45e1cbc1d commit, C++ standard header <stacktrace> exists things such as std::stacktrace_entry but is not declared...
Richy asked 19/1, 2022 at 4:25

3

Solved

The following program fails to link with clang and -stdlib=libstdc++: $ cat future.cpp #include <iostream> #include <future> int main() { std::future<int> f1 = std::async([](){...
Sponger asked 24/7, 2015 at 18:5

1

Solved

This Github repository added std::regex to the list of regular expression engines and got decimated by the others. Why is that std::regex - as implemented in libstdc++ - so much slower than others?...
Stegosaur asked 4/1, 2022 at 18:22

1

I am trying to use the remote development via ssh feature of VS Code. When connecting to the remote server I encounter: Missing GLIBCXX >= 3.4.18! >Found versions 3.4.1 > 3.4.2 > ... &g...
Skinflint asked 8/12, 2020 at 12:16

© 2022 - 2024 — McMap. All rights reserved.