LD_LIBRARY_PATH needed for gcc-3.4.5 executable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can anyone suggest a fix for this??


I am compiling a program with gcc-3.4.5 g++.
When I go to execute that program I get the following:

ld.so.1: ./prog1: fatal: libstdc++.so.6: open failed: No such file or directory

I can solve the issue by setting my LD_LIBRARY_PATH to the directory where
libstdc++.so.6 is located.

This program used to run with gcc-2.95.3 without resetting LD_LIBRARY_PATH.

Question I have,

Is there a way to compile my program so that there is no need to have the
libstdc++.so.6 at runtime? Can I create a prog1, that contains all symbols and
no need for this library when executing?

If so, what are the command options for doing that? I have read over the g++ and
ld documentation but can not seem to find the correct combination.

Thanks,
Dave






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux