libstdc++ Questions
1
std::get_time is behaving in the same way when the format includes '%y' or '%Y', in both cases it tries to read a four digit year. Am I doing something wrong or is it a bug ?
Example code:
#include...
4
I work with a Linuxs server:
> cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
(from wikipedia:
Red Hat Enterprise Linux 6 was forked from Fedora 12
6.7, also ter...
Cullie asked 4/3, 2017 at 15:26
2
Solved
I'd like to know if it is possible to use an object reference as a key in an unordered_map container in C++.
#include <unordered_map>
class Object {
int value;
};
struct object_hash {
in...
3
I have an unresolved symbol error when trying to compile my program which complains that it cannot find __dso_handle. Which library is this function usually defined in?
Does the following result f...
2
Solved
I'm attempting to run a program called GlimmerHMM, however when I try to call the program I get this error:
./glimmerhmm_linux
./glimmerhmm_linux: error while loading shared libraries: libstdc++.s...
Earthshine asked 16/1, 2013 at 3:7
3
Solved
Unless I am mistaken, it should be possible to create a std:array in these ways:
std::array<std::string, 2> strings = { "a", "b" };
std::array<std::string, 2> strings({ "a", "b" });
...
3
Solved
I'm trying to deploy a flask app on a debian server using Machine Learning libs, i managed that so far with most ML libraries but i got this error thanks to TensorFlow which i researched a lot abou...
Gaige asked 1/3, 2019 at 16:0
2
There is a package called libstdc++6-8-dbg on Ubuntu Linux (latest version at time of writing).
It is described as:
GNU Standard C++ Library v3 (debugging files)
This package contains the shar...
1
I am confused with the differences between iostream and bits/stdc++.h ? in competitive programming is it okay to use bits/stdc++.h or are there any consequences
Abnormal asked 7/6, 2021 at 6:31
1
I just started a C++ course and am using MinGW to compile (I started doing K&R so already had it set up for C). Whenever I compile a file that includes or uses any library it gives me the follo...
2
In the GCC C++20 concepts lib, it has
template<typename _Derived, typename _Base>
concept derived_from = __is_base_of(_Base, _Derived)
&& is_convertible_v<const volatile _Derived...
Vernavernacular asked 27/1, 2021 at 8:4
2
Solved
I need to read a series of numbers from a space-separated human-readable file and do some math, but I've run into some truly bizarre memory behavior just reading the file.
If I read the numbers and...
1
When i use std::call_once in Linux version 2.6.36,it makes an error:
terminate called after throwing an instance of 'std::system_error'
what(): Unknown error -1
Aborted
Compile command:
mipsel-bui...
Unwitnessed asked 17/12, 2020 at 6:24
1
Solved
Consider the following structure with an std::optional containing a type that definitely has a "normal" default constructor.
#include <optional>
#include <string>
struct Foo
...
Unknown asked 27/8, 2020 at 20:52
1
Solved
libstdc++'s implementation of pair has the following oddity
template<typename, typename> class __pair_base
{
template<typename T, typename U> friend struct pair;
__pair_base() = defa...
1
Why does this code work with the #if 0 block in place, but fails with a fairly complex set of error messages if you remove it? And more importantly, how do I make it the same result as the very sim...
Eldridgeeldritch asked 2/11, 2020 at 16:43
1
Solved
The following program crashes:
#include <iostream>
#include <filesystem>
namespace fs = std::filesystem;
int main()
{
fs::path p1 = "/usr/lib/sendmail.cf";
std::cout <&...
Disillusionize asked 15/9, 2020 at 13:8
3
Solved
I can create begin and end iterators using std::begin() and std::end().
e.g:
int arr[4][4] = <something here>;
auto begin_it = std::begin(arr);
auto end_it = std::end(arr);
However, why do w...
Scarab asked 26/8, 2020 at 3:7
0
I read some code from <any> in gcc 10.2.0 source
// Manage in-place contained object.
template<typename _Tp>
struct _Manager_internal
{
static void
_S_manage(_Op __which, const an...
19
Solved
How can I get GLIBCXX_3.4.15 in Ubuntu? I can't run some programs that I'm compiling.
When I do:
strings /usr/lib/libstdc++.so.6 | grep GLIBC
I get:
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLI...
5
Solved
I have an unordered_map<Block, int> with Block being a simple struct defined as follows:
struct Block {
size_t start;
size_t end;
bool operator==(const Block& b) const {
return start...
4
Solved
Apologies, I understand questions very similar to this have been asked relatively often, although none of the solutions seem to work for me.When attempting to run any c++ code of a reasonable compl...
2
My app pulls in many shared libraries. Some are written in C++ which pulls in libstdc++.so which pulls in libgcc_s.so. Yet others are written in plain C and linked with -static-libgcc.
So now I ha...
1
Solved
I tried to run the example from the docs page https://en.cppreference.com/w/cpp/thread/call_once but it doesn't work as spected. It gets stuck infinitely. I'd like to know why this happens or if it...
2
Solved
I have a project (code here) in which I run benchmarks to compare the performance of different methods for computing dot product (Naive method, Eigen library, SIMD implementation, ect). I am testin...
Uphemia asked 2/1, 2020 at 22:20
© 2022 - 2024 — McMap. All rights reserved.