public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* cannot run C++ compiled programs
@ 2001-12-12 13:50 chao lin
  2001-12-12 17:52 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: chao lin @ 2001-12-12 13:50 UTC (permalink / raw)
  To: gcc

Hi, I get this when I am trying to install programs:#
./configure
checking for a BSD compatible install... ./install-sh
-c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific
portions of Makefiles... no
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... configure:
error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.

thanks!
chao lin


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cannot run C++ compiled programs
  2001-12-12 13:50 cannot run C++ compiled programs chao lin
@ 2001-12-12 17:52 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2001-12-12 17:52 UTC (permalink / raw)
  To: chao lin; +Cc: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-13  1:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-12 13:50 cannot run C++ compiled programs chao lin
2001-12-12 17:52 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).