This is the mail archive of the gcc@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: cannot run C++ compiled programs


On Dec 12, 2001, chao lin <chao_clin@yahoo.com> wrote:

> checking whether the C++ compiler works... configure:
> error: cannot run C++ compiled programs.

The most common reason for this problem is that g++ implicitly links
in libstdc++.  If libstdc++ is a shared library that is not in the
default search path of the run-time linker, you have to set
LD_LIBRARY_PATH for this library to be found.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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