libstdc++ Questions
1
With my recent upgrade to Mac OS X 10.9 the default standard C++ library changed from libstdc++ to libc++. Since then I observe unexpected behaviour of the stringstream operator>>(double) documente...
Dehisce asked 1/11, 2013 at 10:36
1
Solved
Now that multiple C++ standard libraries can exist on Mac OS X, it now looks like quite a chaotic situation. According to https://mcmap.net/q/267103/-why-can-39-t-clang-with-libc-in-c-0x-mode-link-...
1
Solved
The following program demonstrates an inconsistency in std::getline behavior between libc++ and libstdc++ (using clang3.3).
The program opens the file testfile, reads it until eof, then clears the...
1
Solved
I've done a bit of a google and can't seem to turn up a GCC option or libstdc++ macro for this. Is it possible to force the use of locking internally on all the std::atomic template specializations...
Victorinavictorine asked 2/10, 2013 at 1:20
1
Solved
Related to this question on CodeReview, I tried to use std::unordered_map with a custom allocator but apparently this does not work with gcc/clang and libstdc++. The error can be generated from ini...
Pretor asked 20/9, 2013 at 9:34
2
Solved
I have this kind of message when I start gdb :
$ gdb a.out
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free...
1
Solved
A while back, I decided to upgrade to GCC 4.8 in order to get an early start on some c++11 features. I got a bit sidetracked, though, and didn't really put any of the new features to use until a pr...
Favien asked 30/5, 2013 at 1:35
2
Solved
I am trying to fix my problem "GLIBCXX_3.4.15" not found, which is fairly well documented to fix. But it requires getting the file "libstdc++.so.6.0.15" from somewhere.
Most of the solutions...
2
Solved
I am trying to link my program statically with glibc, because version of the glibc on the target machine is pretty much unpredictable. I used linker flags -static-libgcc and -static-libstdc++ and i...
1
Solved
In a Xcode project which I currently work on, I am using C++11 with Apple LLVM 4.2 (clang) compiler, and using libstdc++ as my standard library, because I am using a library (NTL) which was not com...
1
Solved
The answer to this question How to compile/link Boost with clang++/libc++? states to build Boost with clang++ and libc++, the following should do:
./b2 clean
./b2 toolset=clang cxxflags="-stdlib=l...
2
Solved
1
I'm using Intel's C++ compiler, which on Linux relies on the GNU-supplied libc.so and libstdc++.so.
Here's my problem. To have access to some of the newest C++11 features, I need to use the libstd...
2
Solved
gcc 4.7.1 does empty base class optimization for tuples, which I consider a really useful feature. However, there appears to be an unexpected limit to this:
#include <tuple>
#include <cst...
3
Solved
the GNU implementation of the C++ Library supports a parallel mode, explained here.
Any experiences in using it? Good ones? Bad ones? Especially regarding correctness, but also performance....
Marrowbone asked 7/11, 2010 at 14:35
3
Solved
I've got a class with an atomic member variable:
struct Foo
{
std::atomic<bool> bar;
/* ... lots of other stuff, not relevant here ... */
Foo()
: bar( false )
{}
/* Trivial implement...
Specialism asked 6/1, 2013 at 12:46
1
I have some issues with the new operator in libstdc++. I wrote a program in C++ and had some problems with the memory management.
After having debugged with gdb to determine what is eating up my r...
Chelicera asked 12/12, 2012 at 23:19
1
Solved
I have custom wrapper over CMake, which perform configuring, compilation, and creating distrib for various platforms (win32, SunOS and so on) and different compilers. I need to put into distrib all...
Astatic asked 27/11, 2012 at 5:34
1
have a small problem. I have c++ code, it's linking to some libraries. I have previously (original)exe from the source code and that runs perfectly on first machine. And there is second machine, wh...
2
Solved
I am generating binomially distributed random numbers using STL's 'random'. It becomes extremely slow when the range is big. For the range 40 it takes 12 seconds to generate 100 numbers. For bigger...
1
I am trying to get my program working in another machine where libstdc++ versions is different. I am developing and compiling it on netbeans. I have specified the option -static-libstdc++ but the p...
Bullet asked 2/8, 2011 at 19:22
1
Solved
What is the value of "Compiler Default" for "C++ Standard Library" and "C++ Language Dialect" in Xcode 4.5?
My guess is libstdc++ and GNU++98, but it would be nice to have clarification.
From the...
1
I am working in C++ under Mac OS X (10.8.2) and I recently came up with the need of using C++11 features, which are available through the clang++ compiler using the libc++ stdlib.
However, I also n...
2
What is a good way of checking for the presence of specific C++11 features of the standard library.
For compiler features I just went by the way of checking the compiler version for the (IMHO) maj...
Executrix asked 9/8, 2012 at 15:0
1
if(player!=NULL)
player->shuffled();
I do such things to avoid passing a null reference to a string constructor, but when compiling it still comes to error.
© 2022 - 2024 — McMap. All rights reserved.