This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: compile failure.


>Yes. Ok, I have gotten it to compile, and it can also compile programs
>fine. However, when running those compiled programs, I get the following
>error:  error while loading shared libraries: libstdc++.so.6: cannot
>open shared object file: No such file or directory

if you do ldd on the executable, you should see something like:

%ldd list-gcc-3.4.exe
        libstdc++.so.6 => /mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6 (0x40001000)
        libm.so.6 => /lib/tls/libm.so.6 (0x004a8000)
        libgcc_s.so.1 => /mnt/hd/bld/gcc/gcc/libgcc_s.so.1 (0x400e8000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x005d4000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0036d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00355000)


You can specify what shared libraries get linked with by using
LD_LIBRARY_PATH, and then adjusting LD_RUN_PATH at runtime.

-benjamin


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