libstdc++ Questions
1
Solved
I have an application with STL objects used as part of the C++ interface for plug-in writers.
I know the best option for compatibility would have been to use a C interface instead, but that's not ...
2
I got that error when trying to run my opencv application. I´m using Windows7,CodeBlocks 12.11, opencv2.4.4 and MinGW compiler (the one that comes in CodeBlocks). It compiles and creates the execut...
Recrystallize asked 22/4, 2013 at 7:18
2
I am facing a weird linker issue with clang++ - it is able to find the definition of std::string class but not of std::ios_base::failure class.
$ cat foo.cpp
#include <string>
#include <i...
1
Solved
The following program attempts to provide a specialization for std::tuple_element for the user-defined type foo. Unfortunately, clang-3.5 rejects it with libc++, but using other compilers or using ...
1
Solved
Consider this code:
#include <iostream>
#include <string>
#include <map>
using namespace std;
class Foo
{
public:
Foo() : _x(0)
{
cout << "Default" << endl;
}
...
3
Solved
3
First, consider the following code:
#include <iostream>
#include <functional>
struct Noisy
{
Noisy() { std::cout << "Noisy()" << std::endl; }
Noisy(const Noisy&) { s...
Applesauce asked 24/10, 2014 at 7:21
2
Solved
I am using cmake to manage my project that uses a third party library.
This library could have been compiled/linked against libc++ or libstd++ (Depending on the version).
I know how to tell cmake...
1
Solved
I switched on -fsanitize=undefined on my project which uses Catch, the unit testing library. One line from Catch was signalled as causing undefined behaviour by this flag. I managed to make an isol...
Theurich asked 8/5, 2015 at 11:16
1
Solved
I am trying to use filesystem. I have -std=c++11 -std=c++1y in my CMakeLists.txt. GCC version is 4.9.2. However, I have got an error:
/home/loom/MyProject/src/main.cpp:5:35: fatal error: experimen...
Rarebit asked 7/5, 2015 at 13:54
1
Consider the following minimal example:
// main.cpp
#include <random>
int main(int, char **)
{
std::seed_seq seed1{1337, 42};
std::seed_seq seed2(seed1);
std::seed_seq seed3 = seed2;
re...
1
Solved
I see a fair amount of questions like Apple Mach-O Linker (Id) Error and Undefined symbols in cryptopp at IOS 64-bit project. The problem is usually described as:
Undefined symbols for architectur...
1
Solved
Using a slightly modified version of Howard Hinnants's C++11 stack allocator which is documented here and here, with std::basic_string and compiling with gcc which is using libstdc++, the following...
Pomiculture asked 26/3, 2015 at 17:43
1
Solved
How do I get a working GCC-based C++11 setup on FreeBSD 10? It seems that the standard library that comes with recent GCC versions on FreeBSD is broken. I've installed the port gcc49 and then try t...
1
Solved
1
Solved
I'm looking to use some c++11 features in some existing c++ projects, so I started changing compile flags in Clang for some projects, and I keep running into a specific issue regarding C++11's trea...
4
Consider the following test program:
#include <iostream>
#include <string>
#include <vector>
int main()
{
std::cout << sizeof(std::string("hi")) << " ";
std::strin...
1
Solved
What type should std::remove_cv<const int[3]> produce? int[3] or const int[3]?
const int[3] is an array of 3 const int right?, and has no top-level cv-qualifier. So shouldn't it produce cons...
Villein asked 4/1, 2015 at 20:51
1
Solved
I'm trying to implement a priority queue which uses an object which has a const member that is used to define the priority of objects in the queue. The following is a stripped down version of what ...
1
Solved
According to Link, with regards to std::tuple...
libstdc++ always places the members in reverse order, and libc++ always places the members in the order given
Assuming that's true, is there a rea...
1
Solved
I want to use gcc 4.8.1 for my application (requires libstdc++.so.6.0.18), however customers only have libstdc++.so.6.0.13. I have been using -static-libgcc -static-stdlibc++ for a while now, but m...
6
Solved
So I have been using a container derived from std::vector for some time. Perhaps this is a poor design decision for several reasons, and the question of whether or not you should do such a th...
Upbuild asked 6/12, 2014 at 18:11
2
I have Fedora 20 64-bits, and I have a problem with Android Development Tools.
When I try to run project I have these errors:
[2014-05-11 22:08:03 - TestAp] /home/damian/adt-bundle-linux-x86_64-2...
Copro asked 11/5, 2014 at 20:15
2
Solved
Consider the snippet:
#include <unordered_map>
void foo(const std::unordered_map<int,int> &) {}
int main()
{
foo({});
}
This fails with GCC 4.9.2 with the message:
map2.cpp:7...
2
Solved
I would like to compile boost for Mac OS X 10.9, with stdlibc++. I run the following command:
./b2 threading=multi link=static runtime-link=static cxxflags="-stdlib=libstdc++" linkflags="-stdlib=l...
© 2022 - 2024 — McMap. All rights reserved.