Sponsored Content
Top Forums Programming Link against a particular version of libstdc++ Post 302118876 by vino on Friday 25th of May 2007 12:09:24 AM
Old 05-25-2007
Quote:
Originally Posted by porter
two answers...

1. list the explicit path on the link line, ld will extract the SONAME and use it.

2. use -lstdc++.5
With suggestion 1, it does get compiled with libstdc++.so.5. It also gets compiled with libstdc++.so.6. See this

Code:
ldd setup | grep libstd
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x03ff5000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x007cd000)

I also get a warning.
Code:
/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/qt-3.3/lib/libqt-mt.so, may conflict with libstdc++.so.5

I wonder could this be the reason why libstdc++.so.6 is also required ?

With suggestion 2, I get the error

Code:
/usr/bin/ld: cannot find -lstdc++.5
collect2: ld returned 1 exit status
make: *** [setup] Error 1

 

8 More Discussions You Might Find Interesting

1. AIX

libstdc++.a (libstdc++.so.5) issue on AIX 5.2

hello everybody i am new on the AIX environment and i have faced an issue while running pstill it can't find ibstdc++.a (libstdc++.so.5) although i have the latest GCC and libstdc 4.0.0 i guess. So to resolve the problem i have got an old versions that i want to install on AIX: ... (5 Replies)
Discussion started by: eternalflame
5 Replies

2. Solaris

Setting link to newly installed Java version

Hi, I have Solaris 8 wih Java 1.2.2 as default. I just upgraded it to Java 2 version 1.4. But when I do "java -version: I get following: "Java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunjwit) How would I make solaris to look at my new java? If I have to... (4 Replies)
Discussion started by: harjitsingh
4 Replies

3. Ubuntu

how to recover libstdc++.so.6

Hi! I'm using Ubuntu Karmic and I lost libstdc++.so.6. Is there a way to recover it?.. Thanks in advance (0 Replies)
Discussion started by: Sapfeer
0 Replies

4. Red Hat

Unable to find libstdc++-libc6.2-2.so.3

Hi all, I am working on Red Hat Enterprise Linux ES release 4 (Nahant) with kernel 2.6.9-5 and try to install one application but unable to install it. When I am trying to install it,it is throwing the following error-- To resolve it,I installed gcc 4.0.0 and when I am trying to see gcc... (2 Replies)
Discussion started by: smartgupta
2 Replies

5. UNIX for Dummies Questions & Answers

[Solved] Packages required - Libaio.so.1 - Libstdc++so.6

hi guys I have to install a software that says have theses packages are required Libaio.so.1 Libstdc++so.6 are these default packages for a Suse 11 installation for instance? or do I need to download them to avoid dependency issues thanks a lot ---------- Post updated at 10:00 PM... (0 Replies)
Discussion started by: kopper
0 Replies

6. HP-UX

hpux vnc 4.1.3 libstdc++

It took me a while, but I found the right libsdc++ for the current free vnc 4.1.3, deep in this: http://mirrors.develooper.com/hpux/gcc-3.3.2-11.00.sd.bz Merijn's HP-UX software Download Section for ITRC members is a rich source for old libraries. So if you cannot find the right depot or... (0 Replies)
Discussion started by: DGPickett
0 Replies

7. UNIX for Advanced & Expert Users

Figure out the minimum os version neede to run executable or link library.

Hello, I need to figure out the minimum OS version needed to run some executable. For the following OS: Linux, AIX, Solaris. For example how do I know the minimum OS version for /bin/ls ? "file" command does not give me much information. There are some tools that are helpful for understanding... (4 Replies)
Discussion started by: +Yan
4 Replies

8. Programming

Issues with two versions of libstdC++.so

I'm facing an issue in which my program is using a custom library (say, libxyz.so) which is compiled using libstdc++.so.5 and the system I'm using this library to create an executable from my program, has libstdc++so.6 as well as libstdc++.so.5; both available under /usr/lib directory. There are... (8 Replies)
Discussion started by: Praveen_218
8 Replies
std::reverse_iterator< _Iterator >(3cxx)								  std::reverse_iterator< _Iterator >(3cxx)

NAME
std::reverse_iterator< _Iterator > - SYNOPSIS
Inherits std::iterator< iterator_traits< _Iterator >::iterator_category, iterator_traits< _Iterator >::value_type, iterator_traits< _Iterator >::difference_type, iterator_traits< _Iterator >::pointer, iterator_traits< _Iterator >::reference >. Public Types typedef __traits_type::difference_type difference_type" typedef iterator_traits < _Iterator > ::iterator_category iterator_category" typedef _Iterator iterator_type typedef __traits_type::pointer pointer typedef __traits_type::reference reference typedef iterator_traits < _Iterator >::value_type value_type" Public Member Functions reverse_iterator () reverse_iterator (iterator_type __x) reverse_iterator (const reverse_iterator &__x) template<typename _Iter > reverse_iterator (const reverse_iterator< _Iter > &__x) iterator_type base () const reference operator* () const reverse_iterator operator+ (difference_type __n) const reverse_iterator & operator++ () reverse_iterator operator++ (int) reverse_iterator & operator+= (difference_type __n) reverse_iterator operator- (difference_type __n) const reverse_iterator & operator-- () reverse_iterator operator-- (int) reverse_iterator & operator-= (difference_type __n) pointer operator-> () const reference operator[] (difference_type __n) const Protected Types typedef iterator_traits < _Iterator > __traits_type" Protected Attributes _Iterator current Detailed Description template<typename _Iterator>class std::reverse_iterator< _Iterator > Bidirectional and random access iterators have corresponding reverse iterator adaptors that iterate through the data structure in the opposite direction. They have the same signatures as the corresponding iterators. The fundamental relation between a reverse iterator and its corresponding iterator i is established by the identity: &*(reverse_iterator(i)) == &*(i - 1) This mapping is dictated by the fact that while there is always a pointer past the end of an array, there might not be a valid pointer before the beginning of an array. [24.4.1]/1,2 Reverse iterators can be tricky and surprising at first. Their semantics make sense, however, and the trickiness is a side effect of the requirement that the iterators must be safe. Definition at line 97 of file stl_iterator.h. Member Typedef Documentation typedef iterator_traits< _Iterator >::iterator_category std::iterator< iterator_traits< _Iterator >::iterator_category , iterator_traits< _Iterator >::value_type , iterator_traits< _Iterator >::difference_type , iterator_traits< _Iterator >::pointer , iterator_traits< _Iterator >::reference >::iterator_category [inherited] One of the tag types. Definition at line 122 of file stl_iterator_base_types.h. typedef iterator_traits< _Iterator >::value_type std::iterator< iterator_traits< _Iterator >::iterator_category , iterator_traits< _Iterator >::value_type , iterator_traits< _Iterator >::difference_type , iterator_traits< _Iterator >::pointer , iterator_traits< _Iterator >::reference >::value_type [inherited] The type 'pointed to' by the iterator. Definition at line 124 of file stl_iterator_base_types.h. Constructor &; Destructor Documentation template<typename _Iterator> std::reverse_iterator< _Iterator >::reverse_iterator () [inline] The default constructor default-initializes member current. If it is a pointer, that means it is zero-initialized. Definition at line 121 of file stl_iterator.h. Referenced by std::reverse_iterator< _Iterator >::operator+(), and std::reverse_iterator< _Iterator >::operator-(). template<typename _Iterator> std::reverse_iterator< _Iterator >::reverse_iterator (iterator_type__x) [inline], [explicit] This iterator will move in the opposite direction that x does. Definition at line 127 of file stl_iterator.h. template<typename _Iterator> std::reverse_iterator< _Iterator >::reverse_iterator (const reverse_iterator< _Iterator > &__x) [inline] The copy constructor is normal. Definition at line 132 of file stl_iterator.h. template<typename _Iterator> template<typename _Iter > std::reverse_iterator< _Iterator >::reverse_iterator (const reverse_iterator< _Iter > &__x) [inline] A reverse_iterator across other types can be copied in the normal fashion. Definition at line 140 of file stl_iterator.h. Member Function Documentation template<typename _Iterator> iterator_type std::reverse_iterator< _Iterator >::base () const [inline] Returns: current, the iterator used for underlying work. Definition at line 147 of file stl_iterator.h. Referenced by std::operator==(). template<typename _Iterator> reference std::reverse_iterator< _Iterator >::operator* () const [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 156 of file stl_iterator.h. Referenced by std::reverse_iterator< _Iterator >::operator->(). template<typename _Iterator> reverse_iterator std::reverse_iterator< _Iterator >::operator+ (difference_type__n) const [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 227 of file stl_iterator.h. References std::reverse_iterator< _Iterator >::reverse_iterator(). template<typename _Iterator> reverse_iterator& std::reverse_iterator< _Iterator >::operator++ () [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 177 of file stl_iterator.h. template<typename _Iterator> reverse_iterator std::reverse_iterator< _Iterator >::operator++ (int) [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 189 of file stl_iterator.h. template<typename _Iterator> reverse_iterator& std::reverse_iterator< _Iterator >::operator+= (difference_type__n) [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 236 of file stl_iterator.h. template<typename _Iterator> reverse_iterator std::reverse_iterator< _Iterator >::operator- (difference_type__n) const [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 248 of file stl_iterator.h. References std::reverse_iterator< _Iterator >::reverse_iterator(). template<typename _Iterator> reverse_iterator& std::reverse_iterator< _Iterator >::operator-- () [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 202 of file stl_iterator.h. template<typename _Iterator> reverse_iterator std::reverse_iterator< _Iterator >::operator-- (int) [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 214 of file stl_iterator.h. template<typename _Iterator> reverse_iterator& std::reverse_iterator< _Iterator >::operator-= (difference_type__n) [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 257 of file stl_iterator.h. template<typename _Iterator> pointer std::reverse_iterator< _Iterator >::operator-> () const [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 168 of file stl_iterator.h. References std::reverse_iterator< _Iterator >::operator*(). template<typename _Iterator> reference std::reverse_iterator< _Iterator >::operator[] (difference_type__n) const [inline] Returns: TODO Todo Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html Definition at line 269 of file stl_iterator.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::reverse_iterator< _Iterator >(3cxx)
All times are GMT -4. The time now is 06:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy