public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* a problem about "g++"
@ 2000-03-13 15:02 Bo Xu
  2000-03-13 15:57 ` Mo McKinlay
  0 siblings, 1 reply; 4+ messages in thread
From: Bo Xu @ 2000-03-13 15:02 UTC (permalink / raw)
  To: gcc

Hi,

1. I download gcc-2.95.2 from http://sunfreeware.com , and install it.
when I use "gcc" to compile a C file, it works well.


2. but when I use "g++  hello.cc -o hello" , "hello" file has been made.
but when I "excute it", I see the following:

ld.so.1: ./hello: fatal: libstdc++.so.2.10.0: open failed: No such file
or directory
Killed

3. I find that the file "libstdc++.so.2.10.0" is in /usr/local/lib


4. the file "hello.cc" is:

#include <iostream.h>
int main(){
cout << "hello!\n";
return 0;
}


So could anybody tell me how I can set my "enviroment"  to run "hello"
?  I guess it is a simple question, but because this is the first time I
use "g++", so I don't know  :-).



Bo
Ottawa
Mar.13,2000


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

end of thread, other threads:[~2000-03-13 17:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-13 15:02 a problem about "g++" Bo Xu
2000-03-13 15:57 ` Mo McKinlay
2000-03-13 16:44   ` Martin v. Loewis
2000-03-13 17:34     ` Mo McKinlay

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).