This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cannot run C++ compiled programs
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: chao lin <chao_clin at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 12 Dec 2001 23:22:14 -0200
- Subject: Re: cannot run C++ compiled programs
- Organization: GCC Team, Red Hat
- References: <20011212212927.16522.qmail@web11407.mail.yahoo.com>
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