This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ 3.1: libstdc++.so.3 problem


follow these steps;

1. create a library directory in your home account
2. go there 
3. create a symbolic link to libstdc++.so.4.0.0
4. alter your library load path so that it also looks in your library
directory

Now you can have your own dynamic libraries loaded.



in tcsh shell:

1. mkdir $HOME/lib
2. cd $HOME/lib
3. ln -s /usr/lib/libstdc++.so.4.0.0 libstdc++.so.3
4. setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$HOME/lib




Oliver Kullmann wrote:
> 
> On Wednesday 10 July 2002 13:48, you wrote:
> > Oliver Kullmann wrote:
> > >Hi,
> > >
> > >I have build gcc 3.1, and mostly it seems to be alright,
> > >my programs compile without any messages and most of them
> > >also run, except of one, where I get the error message:
> > >
> > >error while loading shared libraries: libstdc++.so.3: cannot open shared
> > >object file: No such file or directory
> > >
> > >Where should this libstdc++.so.3 be?! It's not in the
> > >implementation lib-directory, which only contains
> > >
> > >gcc-lib        libiberty.a   libstdc++.so        libsupc++.a
> > >libgcc_s.so    libstdc++.a   libstdc++.so.4      libsupc++.la
> > >libgcc_s.so.1  libstdc++.la  libstdc++.so.4.0.0
> > >
> > >As I said, the compilation doesn't give any warnings, so it shouldn't
> > >be a deprecated header. What is the problem here?!
> > >
> > >Any help is greatly appreciated!
> > >
> > >Oliver
> >
> > Login as root and make a soft link as follows:
> >  $ ln  -s  libstdc++.so.4.0.0  libstdc++.so.3
> > then refresh share library info using ldconfig:
> > $ ldconfig
> >   This maybe help you.
> >
> > Good Luck.
> 
> Thanks a lot! Unfortunately, I don't have root access to this
> (remote) machine --- I  have requested the changes, but according
> to my experiences this may never happen.
> 
> Therefore I do static compilation, and give the link to the library:
> 
> /GCC/gcc31/bin/g++ -static -L/GCC/gcc31/lib/ program.cpp
> 
> where GCC/gcc31 is the installation directory.
> Since I can not change the dynamic linking, it seems necessary
> to avoid any dynamic linking. How can I force g++ to really do
> no dynamic linking?!
> 
> --
> Dr. Oliver Kullmann
> Computer Science Department
> University of Wales Swansea
> Faraday Building, Singleton Park
> Swansea SA2 8PP, UK
> http://cs-svr1.swan.ac.uk/~csoliver/

-- 
Gökhan Kisacikoglu    			     Centropolis Effects, LLC
Senior Technical Director		     10950 W Washington Blvd
kisa@centropolisfx.com   310.204.7300 x263   Culver City, CA, 90232
Key: Gö(GIrl)-khan Kis(cirCUS)-a-(Art)-cik(loGIC)-og(thOUGH)-lu(fLU)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]