libstdc++

The latest version of gcc to use libstdc++.so.5

What is the latest version of gcc that still uses libstdc++.so.5 (as opposed to libstdc++.so.6)? ...

Any improvements on the GCC/Windows DLLs/C++ STL front?

Yesterday, I got bit by a rather annoying crash when using DLLs compiled with GCC under Cygwin. Basically, as soon as you run with a debugger, you may end up landing in a debugging trap caused by RtlFreeHeap() receiving an address to something it did not allocate. This is a known bug with GCC 3.4 on Cygwin. The situation arises because ...

Static linking with pthreads & stdc++?

Is it possible to statically link my program with libpthreads and libstdc++ on Linux? ...

How to create a shared object that is statically linked with pthreads and libstdc++ on Linux/gcc?

How to create a shared object that is statically linked with pthreads and libstdc++ on Linux/gcc? ...

std::stringstream strange behaviour

Some background information, for a homework assignment I had to write a polish notation calculator using binary trees, for this to work I had to parse command line input so that it would properly build the binary tree and then go over it to give a valid answer to the mathematical expression that was entered. For the parsing I used a std...

Can an application depend on two different versions of libstdc++?

Can an application depend on two different versions of libstdc++ at the same time? (e.g.: libstdc++5 and libstdc++6)? The scenario being - some binary depends on libstdc++ 6 but loads an .so that depends on libstdc++5... Will that have any chance of working? ...

Requires GLIBCXX_3.4.9 if I've already installed GLIBCXX_4.1.2?

I'm installing the last version of MediainfoDLL on Fedora 8/9 64bits (http://mediainfo.sourceforge.net/es/Download/Fedora). I downloaded libmediainfo-0.7.20 and libzen0-0.4.3 files. When I tried to install libzen0 I get this output: # rpm -i libzen0-0.4.3-1.x86_64.Fedora_9.rpm warning: libzen0-0.4.3-1.x86_64.Fedora_9.rpm: Header V3 DSA...

Avoid linking to libstdc++

I'm working on an embedded project that currently uses C in Linux and uClibc. We're interested in moving it to C++, but I don't want the overhead associated with linking in libstdc++. My impression is that this is possible provided we don't use anything from STL, such as iostream or vector. How does one direct g++ to compile without li...

How to build an application that requires both libstdc++.so.5 and libstdc++.so.6?

I want to preface this with the important notice that I am not a C/C++ programmer, and know very little about how linkage of libraries works in C. Our code uses libstdc++.so.6 (gcc 3.4, i think). We have third-party precompiled (closed source) libraries that use libstdc++.so.5 (gcc 2.something or 3.2, i think). This is on linux. We h...

GLIBCXX_3.4.9 not found

Hi, I have a problem concerning libstdc++.so. I installed a new version of gcc and tried to compile c++ code. The compiling worked, but when I try to execute the binary (m5.opt is its name) I've got the following error: build/ALPHA_SE/m5.opt: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by build/ALPHA_SE/m5.op...

Linking using g++ fails searching for -lstdc++

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/include/linux all: rm -f ../dist/libUtils.so g++ $(JNIFLAGS) -c -m32 -o com_markets_utils_dates_NativeTime.o com_markets_utils_dates_Nativ...

Adding item to list in C++

Hi, I am using two classes in my C++ application. The code is as follows: class MyMessageBox { public: void sendMessage(Message *msg, User *recvr); Message receiveMessage(); list<Message> dataMessageList; }; class User { public: MyMessageBox *dataMsgBox; }; The msg is a pointer to a derived class object of Message cl...

Disabling bounds checking for c++ vectors

With stl::vector: vector<int> v(1); v[0]=1; // No bounds checking v.at(0)=1; // Bounds checking Is there a way to disable bounds checking without having to rewrite all at() as []? I am using the GNU Standard C++ Library. Edit: I changed at() to [] in the area where I suspected a bottleneck, and it significantly reduced the computatio...

What configure options were used when building gcc / libstdc++?

After reading about the problem of passing empty std::string objects between DLLs and EXEs, I am concerned about the configure options used to build my gcc / libstdc++. More specific I want to know if --enable-fully-dynamic-string was used during ./configure. I'm using MinGW 4.4.0 on Windows XP. Does anybody know the configuration use...

Does gcc's STL support rvalue references now?

I know Visual Studio 2010's standard library has been rewritten to support rvalue references, which boosts its performance considerably. Does the standard library implementation of gcc 4.4 (and above) support rvalue references? ...

Porting a C++ application to android

Is it possible to port a C++ application which uses the STL extensively to Android? I understand that currently the NDK does not support this, but is there any effort (open source or otherwise) underway to achieve this? If not is there a way to cross compile libstdc++ for Android? ...

How to determine version of glibc (glibcxx) binary will depend on?

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 determine exact versions of GLIBC and GLIBCXX will be chosen by linker for names from libc and libstdc++? For example, how to get something like...

libstdc++.so.6: cannot handle TLS data

Hello, I have an application compiled at: gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Linux debian 2.6.18-5-686 #1 SMP Fri Jun 1 00:47:00 UTC 2007 i686 GNU/Linux and it runs well. Now I want to run it at: Linux 2.4.20_mvlcge31-tomas #7 Thu May 7 11:33:21 CEST 2009 i686 unknown I got following errors: libstdc++.so....

OS X program runs on dev machine, crashing horribly on others

I have an OS X 10.6 Mac I'm using as my dev machine. The program I wrote works perfectly on the dev machine. However, when I tried to run it on an OS X 10.5 (not sure if that's relevant) test machine, it crashes on launch. This is the error I'm getting: Process: MyApp[25908] Path: /Applications/MyApp.app/Contents/Mac...

Linking with specific library ( libstdc++.so.5 and libstdc++.so.6 )

Hi all, A simple question - is there any way to make the g++ linker to link with a specific libstdc++ library version? I didn't find anything useful in the man page of gcc/g++, neither in other questions here. Here's the situation - my application uses a specific shared library, that's built with libstdc++.so.5 and I want to install a...